Skip to content

Commit ee71e65

Browse files
committed
fix(Icon): size
1 parent a33db0c commit ee71e65

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

src/components/actions/Button/Button.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,6 @@ export const DEFAULT_BUTTON_STYLES: Styles = {
8181
'': true,
8282
'[data-type="link"] & !focused': 0,
8383
},
84-
85-
'& .anticon': {
86-
transition:
87-
'display .2s steps(1, start), margin .2s linear, opacity .2s linear',
88-
},
89-
90-
'& [data-element="ButtonIcon"]:has(.anticon)': {
91-
fontSize: '@icon-size',
92-
},
9384
};
9485

9586
const ButtonElement = tasty({

src/icons/Icon.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
import {
2-
cloneElement,
3-
ForwardedRef,
4-
forwardRef,
5-
memo,
6-
ReactElement,
7-
} from 'react';
1+
import { ForwardedRef, forwardRef, memo, ReactElement } from 'react';
82

93
import {
104
BASE_STYLES,
@@ -26,12 +20,7 @@ const IconElement = tasty({
2620
verticalAlign: 'sub',
2721
width: '1em 1em',
2822
height: 'min 1em',
29-
fontSize: {
30-
// legacy icons
31-
'': 'calc(var(--icon-size, calc(var(--font-size) + 4px)) - 2px)',
32-
// tabler icons
33-
':has(.tabler-icon)': 'var(--icon-size, var(--font-size))',
34-
},
23+
fontSize: '@icon-size',
3524
transition: 'theme, width, height',
3625
textAlign: 'center',
3726
textTransform: 'none',

0 commit comments

Comments
 (0)