Skip to content

Commit

Permalink
Disable sidebar animations when prefers-reduced-motion
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed Jul 24, 2024
1 parent 4f6644d commit 37a8555
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/bundle/trestle/admin.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions frontend/css/layout/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,12 @@
}
}
}

@media (prefers-reduced-motion) {
.app-nav {
.nav-label,
.nav-header a span {
transition: none;
}
}
}
7 changes: 7 additions & 0 deletions frontend/css/layout/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,10 @@
}
}
}

@media (prefers-reduced-motion) {
.app-sidebar,
.app-wrapper {
transition: none;
}
}

0 comments on commit 37a8555

Please sign in to comment.