No Mouse Days
Ever wanted a package that disables the mouse cursor one day a week so you can test keyboard accessibility as a team? No? Well here you go anyway.
Read about No Mouse Days on the Accessibility Project: https://www.a11yproject.com/posts/2020-10-15-no-mouse-days
How to use
- Install the package
npm install no-mouse-days --save-dev
- Import the package into your project for all times
- Import and conditionally apply it in development, if you want
if processenvNODE_ENV === 'development'import"no-mouse-days"
- Or apply it one day of the week, e.g. on Mondays
let date =let dayOfWeek = dateif dayOfWeek === 1import"no-mouse-days"
This project includes a small example that you can use to test the No Mouse Days script locally in a browser.
Go into the example directory and install dependencies:
cd example npm start
With a server successfully running, you can then visit the provided localhost URL such as
You can also view the example on GitHub pages: https://marcysutton.github.io/no-mouse-days/example/index.html