cacao-css 3.12.0 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cacao-css",
3
3
  "description": "A set of composable CSS modules that provide a solid foundation for starting a new project.",
4
- "version": "3.12.0",
4
+ "version": "3.13.0",
5
5
  "main": "gulfile.js",
6
6
  "author": "Aptuitiv, Inc <hello@aptuitiv.com>",
7
7
  "license": "MIT",
@@ -6,6 +6,19 @@
6
6
  --base-body-background: #fff;
7
7
  }
8
8
 
9
+ /**
10
+ * Add smooth scrolling by default.
11
+ * Disable it for those who prefer reduced motion
12
+ * @link https://ashleemboyer.com/accessible-smooth-scroll-to-top-buttons-with-little-code
13
+ */
14
+ html {
15
+ scroll-behavior: smooth;
16
+
17
+ @media (prefers-reduced-motion: reduce) {
18
+ scroll-behavior: auto;
19
+ }
20
+ }
21
+
9
22
  /**
10
23
  * 1. By default, `<body>` has no `background-color` so we set one
11
24
  * as a best practice.