🐛(frontend) fix broken animation when motion is reduced
Feedback from one of our users. I forgot animation can be disabled for accessibility purpose. Fix it by bypassing the animation if reduce motion is activated. Oopsie, mybad, I learnt something.
This commit is contained in:
committed by
aleb_the_flash
parent
4eea4d01cd
commit
05b74365fa
@@ -32,8 +32,13 @@ const Columns = ({ children }: { children?: ReactNode }) => {
|
|||||||
justifyContent: 'normal',
|
justifyContent: 'normal',
|
||||||
padding: '0 1rem',
|
padding: '0 1rem',
|
||||||
width: 'calc(100% - 2rem)',
|
width: 'calc(100% - 2rem)',
|
||||||
opacity: 0,
|
'@media(prefers-reduced-motion: reduce)': {
|
||||||
animation: '.5s ease-in fade 0s forwards',
|
opacity: 1,
|
||||||
|
},
|
||||||
|
'@media(prefers-reduced-motion: no-preference)': {
|
||||||
|
opacity: 0,
|
||||||
|
animation: '.5s ease-in fade 0s forwards',
|
||||||
|
},
|
||||||
lg: {
|
lg: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
|
|||||||
Reference in New Issue
Block a user