Skip to content

Add accessibility tests, linting, and CI for floppydisk component#1

Merged
cameronrye merged 7 commits intomainfrom
feat/a11y-tests-ci
Nov 21, 2025
Merged

Add accessibility tests, linting, and CI for floppydisk component#1
cameronrye merged 7 commits intomainfrom
feat/a11y-tests-ci

Conversation

@cameronrye
Copy link
Owner

@cameronrye cameronrye commented Nov 21, 2025

This PR improves the floppydisk UI library to be closer to production-ready:

  • Phase 1: Accessibility updates

    • Keyboard activation via Enter/Space for the FloppyDisk component when not disabled
    • Focus-visible outline for keyboard users
    • Accessibility docs updated to describe behavior
  • Phase 2: Testing and CI

    • Add Vitest + React Testing Library setup
    • Add FloppyDisk tests covering rendering, label behavior, aria-label override, and keyboard/mouse activation
    • Add minimal export smoke test for the built CJS bundle
    • GitHub Actions workflow: build, test, lint, and run the CJS export smoke test on pushes/PRs to main
  • Phase 3: Linting/formatting and OSS polish

    • Add ESLint (TS + React) and Prettier with scripts: npm run lint and npm run format
    • Add LICENSE (MIT), CODE_OF_CONDUCT.md, and CONTRIBUTING.md
    • Update README to link to contributing and code of conduct docs and clarify license

All tests and lint pass locally via npm test and npm run lint.

@cameronrye cameronrye merged commit bdda508 into main Nov 21, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments