File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
packages/react-components/react-motion-components-preview/stories/src/Rotate Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ const useClasses = makeStyles({
32
32
borderRadius : tokens . borderRadiusMedium ,
33
33
'&:hover' : {
34
34
transform : 'translateY(-2px)' ,
35
- backgroundColor : tokens . colorNeutralBackground1 ,
36
35
} ,
37
36
} ,
38
37
patternCard : {
@@ -43,7 +42,14 @@ const useClasses = makeStyles({
43
42
justifyContent : 'center' ,
44
43
gap : tokens . spacingVerticalS ,
45
44
border : `2px solid ${ tokens . colorNeutralStroke1 } ` ,
46
- backgroundColor : tokens . colorNeutralBackground1 ,
45
+ // Removing shadows because they are not accurate for 3D rotations
46
+ boxShadow : 'none !important' , // Force remove shadow with !important
47
+ '&::before' : {
48
+ display : 'none' , // Remove any pseudo-element shadows
49
+ } ,
50
+ '&::after' : {
51
+ display : 'none' , // Remove any pseudo-element shadows
52
+ } ,
47
53
} ,
48
54
patternTitle : {
49
55
color : tokens . colorNeutralForeground1 ,
@@ -173,7 +179,6 @@ export const CardFlip = () => {
173
179
< Card
174
180
className = { classes . patternCard }
175
181
onClick = { ( ) => togglePattern ( pattern . id ) }
176
- appearance = "outline"
177
182
role = "button"
178
183
tabIndex = { 0 }
179
184
aria-label = { `Toggle ${ pattern . name } rotation` }
You can’t perform that action at this time.
0 commit comments