Skip to content

Commit

Permalink
fix: use object syntax for keyframes
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Oct 11, 2023
1 parent c0ac17d commit 8c2032f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/widget/src/config/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,16 @@ const shape = {
borderRadiusSecondary: 8,
};

const enterKeyframe = keyframes`
0% {
transform: scale(0);
opacity: 0.05;
}
100% {
transform: scale(1);
opacity: 0.1;
}
`;
const enterKeyframe = keyframes({
'0%': {
transform: 'scale(0)',
opacity: 0.05,
},
'100%': {
transform: 'scale(1)',
opacity: 0.1,
},
});

export const createTheme = (mode: PaletteMode, theme: ThemeConfig = {}) => {
const primaryMainColor =
Expand Down Expand Up @@ -186,12 +186,12 @@ export const createTheme = (mode: PaletteMode, theme: ThemeConfig = {}) => {
root: {
[`& .${touchRippleClasses.ripple}.${touchRippleClasses.rippleVisible}`]:
{
animationName: `${enterKeyframe}`,
animationName: enterKeyframe,
},
[`& .${touchRippleClasses.ripple}.${touchRippleClasses.rippleVisible}`]:
{
opacity: 0.1,
animationName: `${enterKeyframe}`,
animationName: enterKeyframe,
},
},
},
Expand Down

0 comments on commit 8c2032f

Please sign in to comment.