Skip to content

Commit ee6bd7a

Browse files
authored
Apply dynamic sizing for octicons
1 parent 81bbf90 commit ee6bd7a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/base/octicons.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@
33
overflow: visible !important;
44
vertical-align: text-bottom;
55
fill: currentColor;
6+
/* Icon svg elements have `height="16" width="16"` set, hardcoding their dimensions to 16px.
7+
This is useful for sizing in case CSS is missing/not yet loaded, but prevents icons from
8+
responding to changes in font size/zoom. Using base-size applies the same size by default
9+
but allows for dynamic sizing when base font size changes. */
10+
height: var(--base-size-16);
11+
width: var(--base-size-16);
612
}

0 commit comments

Comments
 (0)