Skip to content

Commit

Permalink
fix: added icon size variable and applied to current icons (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bracciata authored Feb 27, 2023
1 parent a361f9c commit 4f3537b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/styles/dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
}

.Dialog__close svg {
height: 24px;
width: 24px;
height: var(--icon-size);
width: var(--icon-size);
}

.Dialog__content {
Expand Down
4 changes: 2 additions & 2 deletions packages/styles/pointout.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@
.Pointout__dismiss .Icon svg,
.Pointout__next .Icon svg,
.Pointout__previous .Icon svg {
height: 24px;
width: 24px;
height: var(--icon-size);
width: var(--icon-size);
}

.Pointout__dismiss:hover {
Expand Down
3 changes: 3 additions & 0 deletions packages/styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@
--font-weight-bold: 700;
--font-weight-ultra-bold: 900;

/* icon sizes */
--icon-size: 24px;

/* dimensions */
--border-width: 6px;
--layout-padding: 9px;
Expand Down

0 comments on commit 4f3537b

Please sign in to comment.