File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 40
40
font-family : map .get ($tokens , ' font' );
41
41
display : inline-flex ;
42
42
font-style : normal ;
43
+ place-items : center ;
44
+ place-content : center ;
43
45
line-height : 1 ;
44
46
// Avoid displaying overflowing text if font ligatures have not loaded.
45
47
overflow : hidden ;
48
+ // Changing the letter-spacing for WCAG text spacing compliance will shift
49
+ // around font ligature icons, so we revert that to normal. Note: some a11y
50
+ // tools use `!important` style injection and may see shifting icons. Actual
51
+ // text spacing override implementations in projects should not set
52
+ // `letter-spacing` on icons, or revert it with a `text-indent` of the same
53
+ // size.
46
54
letter-spacing : normal ;
47
55
text-transform : none ;
48
56
user-select : none ;
49
57
white-space : nowrap ;
50
58
word-wrap : normal ;
59
+ // Prevent icons from shrinking when placed in a flex container.
60
+ flex-shrink : 0 ;
51
61
52
62
/* Support for all WebKit browsers. */
53
63
-webkit-font-smoothing : antialiased ;
You can’t perform that action at this time.
0 commit comments