Skip to content

Commit

Permalink
fix: make icons inherit font size
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed May 19, 2018
1 parent 5f222be commit fddcec3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/material-ui/src/Icon/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { capitalize } from '../utils/helpers';
export const styles = theme => ({
root: {
userSelect: 'none',
fontSize: 24,
fontSize: 'inherit',
width: '1em',
height: '1em',
// Chrome fix for https://bugs.chromium.org/p/chromium/issues/detail?id=820541
Expand Down
3 changes: 2 additions & 1 deletion packages/material-ui/src/SvgIcon/SvgIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { capitalize } from '../utils/helpers';
export const styles = theme => ({
root: {
userSelect: 'none',
fontSize: 24,
fontSize: 'inherit',
verticalAlign: 'middle',
width: '1em',
height: '1em',
display: 'inline-block',
Expand Down

0 comments on commit fddcec3

Please sign in to comment.