Skip to content

Commit

Permalink
frontend: adds reduced motion compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent T <[email protected]>
  • Loading branch information
vyncent-t committed Oct 4, 2023
1 parent 8808d91 commit 9c9beaf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions frontend/src/lib/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,18 @@ const commonRules = {
borderRadius: 4,
},
overrides: {
MuiCssBaseline: {
'@global': {
'@media (prefers-reduced-motion: reduce)': {
'*': {
animationDuration: '0.01ms !important',
animationIterationCount: '1 !important',
transitionDuration: '0.01ms !important',
scrollBehavior: 'auto !important',
},
},
},
},
MuiTooltip: {
tooltip: {
fontSize: '1.3em',
Expand Down

0 comments on commit 9c9beaf

Please sign in to comment.