Skip to content

Commit

Permalink
Merge pull request #128 from w3c/fa-icon-width
Browse files Browse the repository at this point in the history
fix font awesome icons width
  • Loading branch information
deniak authored Oct 17, 2023
2 parents ed7a326 + 34f012e commit 1b0e642
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions assets-src/styles/sass/30-base/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
svg {
fill: currentColor;
height: auto;
width: 100%;

&:not(.svg-inline--fa) {
width: 100%;
}
}


/**
SVG icons are sized relative to font size, thanks to the em unit.
*/
Expand Down Expand Up @@ -92,4 +94,4 @@ Pay attention to whether the icon is before the text or after.
}
}
}
}
}
2 changes: 2 additions & 0 deletions public/dist/assets/styles/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,8 @@ pre {
svg {
fill: currentColor;
height: auto;
}
svg:not(.svg-inline--fa) {
width: 100%;
}

Expand Down
2 changes: 1 addition & 1 deletion public/dist/assets/styles/core.min.css

Large diffs are not rendered by default.

0 comments on commit 1b0e642

Please sign in to comment.