-
Notifications
You must be signed in to change notification settings - Fork 89
accessibility conventions
<style> .check-div { padding: 1rem; } .check-div > label { margin-left: 1rem; } fieldset { padding: 3rem; } h2 { font-size: 1.25rem; padding: 0.5rem; } calcite-chip { margin-right: 0.5rem; } </style>
Calcite Components leverages the W3C Accessibility Standards to ensure the applications and experiences are usable by a wide range of audiences. There also pages for accessibility-design-conventions and accessibility-developer-conventions. Additional considerations in designing for individuals include:
| Designing for Individuals | Do | Don't |
|---|---|---|
| On the Autistic Spectrum |
Use simple sentences and bullets. |
Create a wall of text. |
| Who use Screen Readers |
Write descriptive links & headings. |
Write vague links & headings. |
Who have low vision |
Use a combination of color, shapes & text. |
Use only color to convey meaning or status. |
With physical or motor difficulties |
Make large clickable actions. |
Demand precision. |
Who are deaf or hard of hearing |
Use subtitles or provide transcripts for video. |
Put content in audio or video formats only. |
With Dyslexia |
Provide reminders & prompts. |
Force people to remember things from previous places. |
SVGs are visual elements. When rendering them in a component, assess if the SVG has semantic meaning that needs to be described.
If the SVG has no semantic meaning or the semantic meaning is described elsewhere, make sure to set aria-hidden="true" on it so that screen readers can ignore it.
If the SVG has some semantic meaning that needs to be described to an end user, set the role to img and ensure that it has an aria-label or aria-lablledby.
More information can be found here: https://www.deque.com/blog/creating-accessible-svgs/
- Monorepo
- Global Config
- Coding Conventions
- Testing Conventions
- Patching Packages
- Deprecation Guidance
- Continuous Integration
- GitHub Secrets
- Troubleshoot Build Errors
- Tips and Tricks
- NPM FAQ
- Wiki Conventions
- Styling Conventions
- CSS Transitions
- Restricting User Input
- ItemHidden Property
- What Happens When You Scale Vector-Based Icons
- Internationalization
- Introduction
- Getting Started
- Naming Schema
- Semantic Tokens
- Component Tokens
- Web Platform
- Build
- Documentation
- Testing
- Contributing