Skip to content

Commit

Permalink
fix(demo): fix centering of MDL icons
Browse files Browse the repository at this point in the history
Some icons on the demo were not centered correctly, such as the custom
content tab's "plus" button.  Some conflicting styles were changing
the line-height.

Change-Id: I08c9bb01642346b1a3b1162f779300221ae23246
  • Loading branch information
joeyparrish committed Jun 15, 2020
1 parent cda3028 commit 1ce2aa8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions demo/demo.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
font-family: 'Material Icons Round';
}

/* Conflicting styles between the icons font & the MDL buttons caused some
* icons not to be centered in their MDL button. This fixes it. */
.mdl-button .material-icons {
line-height: 36px;
}

/* This is a less mixin only, rather than a CSS class. MDL has an equivalent
* class with the same name, which can be used in the application directly. */
.hidden() {
Expand Down

0 comments on commit 1ce2aa8

Please sign in to comment.