Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
accessible-spinner-datepicker
Advanced tools
An accessible spinner calendar component
Table of Contents:
Many datepickers on the web are inaccessible.
The APIs can be awkward (does accessibility: true
make sense as a prop?), and the claims either go untested or left to wither as the person responsible for PRs moves to other projects.
Moreover, we believe that datepickers are not "one size fits all". A datepicker that works well for, say, Flight bookings, might not be the same as a flight search, which might not be the same as a date-of-birth input. This datepicker is no different!
Quite often, a simple text input is the more resilient approach to solving these prolems. If someone breaks accessibility guarantees, or a mode of input does not work with the component, at the very least people should be able to carry out their task. Thus, we want to enforce the text input, and then offer an enhanced interface on top.
We made it with the following goals
Our initial design is based on the Spinner Datepicker by the ARIA Authoring Practices. We found it exposes the relevant states well. Note that the ARIA Authoring Practices is not the end-goal of this. We have an obligation to test the accessibility as well, and so does the caller of this library!
In addition to that, we want to enable multimodal operation for pointer touch operations. In other words, we want it possible for people to change the dates by touch, like in some native UI spinners. This might be a bad assumption, and we have to user test.
The Datepicker should make as few assumptions about the language, datetime format, and script, as it can.
These are things we assume, and should test.
TBD after the prototype is done.
npm install accessible-spinner-calendar
Then, in your relevant source file:
All contributors are required to abide by our Code of Conduct.
You will need [git], node and npm.
Then, in a terminal:
git clone https://github.com/fpapad/accessible-calendar-datepicker
npm ci
npm run dev
FAQs
An accessible spinner datepicker component
The npm package accessible-spinner-datepicker receives a total of 2 weekly downloads. As such, accessible-spinner-datepicker popularity was classified as not popular.
We found that accessible-spinner-datepicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.