Skip to content

Commit b38c38b

Browse files
authored
Merge pull request #22497 from storybookjs/chore/fix-css-inconsistency
Maintenance: Fix css inconsistency in Button and Icon components
2 parents 7546fbb + eb4390c commit b38c38b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

code/ui/components/src/Button/Button.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ const ButtonWrapper = styled.button<{
2727
position: 'relative',
2828
textAlign: 'center',
2929
textDecoration: 'none',
30-
transition: 'all 150ms ease-out',
31-
transform: 'translate3d(0,0,0)',
30+
transitionProperty: 'background, box-shadow',
31+
transitionDuration: '150ms',
32+
transitionTimingFunction: 'ease-out',
3233
verticalAlign: 'top',
3334
whiteSpace: 'nowrap',
3435
userSelect: 'none',

code/ui/components/src/icon/icon.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { icons } from './icons';
77
const Svg = styled.svg`
88
display: inline-block;
99
shape-rendering: inherit;
10-
transform: translate3d(0, 0, 0);
1110
vertical-align: middle;
1211
fill: currentColor;
1312

0 commit comments

Comments
 (0)