Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(button): Fixed button's icon size scaling on browser zoom
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 368696463
  • Loading branch information
abhiomkar authored and copybara-github committed Apr 15, 2021
1 parent 3793a31 commit bc104ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/mdc-button/_button-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,13 @@
@mixin icon {
@include rtl.reflexive-box(margin, right, 8px);

$icon-size: typography.px-to-rem(18px);

display: inline-block;
width: 18px;
height: 18px;
font-size: 18px;
font-size: $icon-size;
height: $icon-size;
vertical-align: top;
width: $icon-size;
}

@mixin icon-trailing {
Expand Down

0 comments on commit bc104ba

Please sign in to comment.