Skip to content

Commit 2b7070a

Browse files
authored
fix: revert icon font-size applied by an icon font class (#6418)
1 parent 8608b5d commit 2b7070a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/icon/src/vaadin-icon.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ class Icon extends ThemableMixin(
241241
${tag}[font] {
242242
display: inline-flex;
243243
vertical-align: middle;
244+
font-size: inherit;
244245
}
245246
`,
246247
];

‎packages/icon/test/test-icon-font.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const iconFontCss = css`
2222
line-height: 1.5;
2323
display: inline-block;
2424
vertical-align: top;
25+
font-size: 24px;
2526
}
2627
2728
.icon-before::before {

0 commit comments

Comments
 (0)