Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sparkbox/accessible-components
A set of useful guides to building accessible components.
https://github.com/sparkbox/accessible-components
Last synced: 2 months ago
JSON representation
A set of useful guides to building accessible components.
- Host: GitHub
- URL: https://github.com/sparkbox/accessible-components
- Owner: sparkbox
- Created: 2022-09-29T21:31:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-06T21:41:22.000Z (9 months ago)
- Last Synced: 2024-05-07T09:41:40.617Z (9 months ago)
- Language: JavaScript
- Homepage: https://accessible-components.sparkbox.com
- Size: 3.41 MB
- Stars: 3
- Watchers: 9
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Accessible Components
A set of useful guides to building accessible components.
View the production version of this repo at [https://accessible-components.sparkbox.com/](https://accessible-components.sparkbox.com/).
## Getting Started
Once you've installed all of the dependencies (`npm install`), you will need to establish your connection to the Airtable database.
1. Copy the `.env.example` file, make sure it's in the root of your project, and rename it `.env.local`.
2. Your `env.local` file should include the following:`AIRTABLE_API_KEY=`
`AIRTABLE_BASE_ID=`
This sets up your Airtable API for use in your project.
Then, run the development server:
```bash
npm run dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Run `npm run prepare` for husky pre-commit hook.
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed at [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
## Additional Commands
| Command | Description |
| -------------------- | ----------------------------------------- |
| `npm run test` | Run a single test command. |
| `npm run test:watch` | Rerun tests continuously as files change. |## Resources
- [Airtable](https://airtable.com/appv8j9j5397PMeQc/tblBFwLfB4EsNdMCC/viwErayvnOTsmyu5C?blocks=hide). To view, log in with the crendentials found in 1Password.
- [Jira](https://sparkbox.atlassian.net/jira/software/projects/AC/boards/133)
- [Google Drive for additional content not yet in Airtable](https://drive.google.com/drive/folders/1_NiJiELDLD5H9zpgUn1hrkmUAAzBQIAt?ths=true)## Supported Browsers
We're aiming to support the following browsers to a high standard, meaning that behavior and design closely match the original specifications. A user can access all content and functionality, including the usability of required assistive devices, such as a keyboard and screen reader.
**macOS**
- Safari (last 2 major versions)
- Chrome (last 6 months)
- Firefox (last 6 months)**Windows**
- Chrome (last 6 months)
- Firefox (last 6 months)
- Edge (last 6 months)**Mobile**
- Safari (last 2 major versions)
- Chrome on Android (last 6 months)
- Firefox on Android (last 6 months)Older browsers should still be accessible, but may not entirely match the designs. Dead browsers, such as IE11, are not supported.