mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-17 19:21:23 +03:00
Apply smooth-scroll when prefers-reduced-motion: no-preference (#31877)
* feat(reboot): apply smooth-scroll when not prefers-reduced-motion * docs(migration): mention scroll-behavior in alpha3 * docs(accessibility): mention scroll-behavior in reduced motion section * docs(accessibility): rewording smooth scroll sentence * feat(variable): introduce enable-smooth-scroll variable * docs(accessibility): reword smooth-scroll sentence Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -16,6 +16,10 @@ toc: true
|
||||
- The `scale-color()` will either tint or shade a color depending on whether its weight parameter is positive or negative.
|
||||
- See [this PR](https://github.com/twbs/bootstrap/pull/30622) for more details.
|
||||
|
||||
### Reboot
|
||||
|
||||
- Introduce `$enable-smooth-scroll`, which applies `scroll-behavior: smooth` globally—except for users asking for reduced motion through `prefers-reduced-motion` media query. [See #31877](https://github.com/twbs/bootstrap/pull/31877)
|
||||
|
||||
## v5.0.0-alpha2
|
||||
|
||||
### Sass
|
||||
|
||||
Reference in New Issue
Block a user