Skip to content

Commit b5d0efd

Browse files
committed
up deps, edit readme, release 0.9.8
1 parent 8154563 commit b5d0efd

File tree

3 files changed

+156
-170
lines changed

3 files changed

+156
-170
lines changed

README.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Turn your boring fixed header into a smart one with one line of code.
1616
- **Lightweight** - Just over 1kb without any dependency
1717
- **Enjoyable** - When scrolling down, the header is hidden, when scrolling up, the header is shown.
1818
- **Powerful** - Uses acceleration delta for both hiding and showing instead of fixed thresholds
19-
- **User-centric** - Behaves as your users expect on page load, scroll restoration, hovering, dropdown navigation, on top reached.
19+
- **User-centric** - Behaves as your users expect on page load, scroll restoration, hovering, dropdown navigation, top reached and reduced motion.
2020
- **Smart** - Functionalities are automatically enabled/disabled if your header turns from fixed/sticky to something else or it is hidden at different viewports
2121
- **Flexible** - Works with any scrolling container and with your own transition styles
2222

@@ -163,21 +163,6 @@ useFixedHeader(headerRef, {
163163

164164
<br />
165165

166-
## Accessibility - Reduced Motion
167-
168-
This is not done for you and must be implemented manually using `prefers-reduced-motion` media query:
169-
170-
```css
171-
@media (prefers-reduced-motion: reduce) {
172-
.Header {
173-
transition-duration: 0s;
174-
transition-delay: 0s;
175-
}
176-
}
177-
```
178-
179-
<br />
180-
181166
## License
182167

183168
MIT Licensed - Simone Mastromattei © 2023

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vue-use-fixed-header",
33
"description": "Turn your boring fixed header into a smart one.",
44
"private": false,
5-
"version": "0.9.7",
5+
"version": "0.9.8",
66
"type": "module",
77
"keywords": [
88
"vue",
@@ -58,17 +58,17 @@
5858
},
5959
"devDependencies": {
6060
"@rollup/plugin-terser": "^0.4.3",
61-
"@types/node": "^20.4.2",
61+
"@types/node": "^20.4.5",
6262
"@vitejs/plugin-vue": "^4.2.3",
6363
"@vue/compiler-dom": "^3.3.4",
64-
"cypress": "^12.17.1",
64+
"cypress": "^12.17.2",
6565
"cypress-real-events": "^1.9.1",
6666
"playwright-webkit": "~1.34.3",
6767
"rimraf": "^5.0.1",
6868
"typescript": "^5.1.6",
69-
"vite": "^4.4.4",
69+
"vite": "^4.4.7",
7070
"vite-plugin-dts": "^3.3.1",
7171
"vue": "^3.3.4",
72-
"vue-tsc": "^1.8.5"
72+
"vue-tsc": "^1.8.8"
7373
}
7474
}

0 commit comments

Comments
 (0)