Skip to content

Commit

Permalink
fix(icon): hide font ligature overflowing text
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 524316180
  • Loading branch information
asyncLiz authored and copybara-github committed Apr 14, 2023
1 parent 4fa83bf commit 2eb914e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions icon/lib/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ $_custom-property-prefix: 'icon';
font-size: var(--_size);
font-variation-settings: var(--_font-variation-settings);
line-height: 1;
// Avoid displaying overflowing text if font ligatures have not loaded.
overflow: hidden;
letter-spacing: normal;
text-transform: none;
white-space: nowrap;
Expand Down

0 comments on commit 2eb914e

Please sign in to comment.