Skip to content

Commit

Permalink
Add display block to improve rendering on initial page load (#240)
Browse files Browse the repository at this point in the history
This PR adds a slight improvement to icon loading by using the display block property provided by material icons. This prevents the temporary icon text from showing before the symbol has fully loaded.
  • Loading branch information
Jeremy-Walton authored Dec 14, 2024
1 parent e4976e1 commit fc96366
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// from Googles CDN like we do for our other fonts
// https://developers.google.com/fonts/docs/material_symbols#variable_font_with_google_fonts

@import 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200';
@import 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&display=block';

.material-symbols-outlined,
.material-symbols {
Expand Down

0 comments on commit fc96366

Please sign in to comment.