Skip to content

Commit 35960b4

Browse files
committed
fix(icons): tabler icons sizing
1 parent f45df1c commit 35960b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/GlobalStyles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const GlobalStylesElement = createGlobalStyle<GlobalStylesElementProps>`
9090
padding: 0 var(--outline-width);
9191
}
9292
93-
.tabler-icon {
93+
:not([data-qa$="Icon"]) > .tabler-icon {
9494
font-size: var(--icon-size);
9595
width: 1em;
9696
height: 1em;

src/icons/Icon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const IconElement = tasty({
3232
width: 'min 1em',
3333
height: '1em 1em',
3434
strokeWidth: '$stroke-width',
35+
fontSize: 'inherit',
3536
},
3637
},
3738
styleProps: [...OUTER_STYLES, ...BASE_STYLES, ...COLOR_STYLES],

0 commit comments

Comments
 (0)