[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] Honor prefers-reduced-motion for improved accessibility

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68a5eb572a345_2cb7a1881887c@gitlab-sidekiq-low-urgency-cpu-bound-v2-579cf6b8b8-qrngs.mail>

luci pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
2f0a1eab by Moïse Nturubika at 2025-08-20T15:28:03+00:00
[ENH] Honor prefers-reduced-motion for improved accessibility
---
* [ENH] Honor prefers-reduced-motion for improved accessibility

See merge request tikiwiki/tiki!7433

- - - - -


1 changed file:

- themes/base_files/scss/_tiki-miscellaneous_global.scss


Changes:

=====================================
themes/base_files/scss/_tiki-miscellaneous_global.scss
=====================================
@@ -9,6 +9,40 @@
 
 //****** Misc. Global Classes (layout and style) ****/
 
+// Accessibility: Honor prefers-reduced-motion setting
+// This disables non-essential animations and transitions when users have requested reduced motion
+@media screen and (prefers-reduced-motion: reduce) {
+  * {
+    // Disable all transitions
+    transition-duration: 0.001s !important;
+    transition-delay: 0s !important;
+    
+    // Disable all animations
+    animation-duration: 0.001s !important;
+    animation-delay: 0s !important;
+    animation-iteration-count: 1 !important;
+    
+    // Disable scroll behavior
+    scroll-behavior: auto !important;
+  }
+  
+  // Specific elements that might have animations
+  .sliding-panel-admin-bar,
+  .dropdown-menu,
+  .collapse,
+  .fade,
+  .modal,
+  .carousel-item,
+  .progress-bar,
+  .accordion-button,
+  .nav-link,
+  .btn,
+  .alert {
+    transition: none !important;
+    animation: none !important;
+  }
+}
+
 // Extra-small button, initially for the side column toggle icons
 .btn-xs { padding: 0 .25rem !important; }
 .btn-xs > span { width: 1rem !important; }



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/2f0a1eab7769d112204a854003f6efcab94ef520

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/2f0a1eab7769d112204a854003f6efcab94ef520
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.