feat(a11y): Add ARIA attributes and accessibility testing infrastructure#1116
Draft
feat(a11y): Add ARIA attributes and accessibility testing infrastructure#1116
Conversation
- Add @storybook/addon-a11y for accessibility panel in Storybook - Add ARIA attributes to bds-checkbox: role, aria-checked, aria-disabled, aria-label - Add ARIA attributes to bds-accordion-header: role, aria-expanded, tabindex - Add ARIA attributes to bds-tab-group: role tablist/tab, aria-selected, aria-controls - Add ARIA attributes to bds-modal: role dialog, aria-modal, aria-hidden - Add accessibility unit tests for checkbox, button, accordion-header, modal - Add keyboard navigation e2e tests - Create accessibility documentation page in Storybook - Add accessibility section to button.mdx documentation Co-authored-by: TarsysFonseca <3694626+TarsysFonseca@users.noreply.github.com>
- Update accordion e2e tests to focus on header element instead of icon - Add tests for aria-expanded attribute and role button - Add test to verify aria-expanded updates when accordion opens Co-authored-by: TarsysFonseca <3694626+TarsysFonseca@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement accessibility audits and unit tests for components
feat(a11y): Add ARIA attributes and accessibility testing infrastructure
Nov 28, 2025
Contributor
|
@copilot aplique a verificação também aos componentes de input, nav e pagination. Sempre que possível, garanta que as modificações não causem falhas (breaking changes) em implementações que já usam a versão atual. |
…on, and navbar - Input: Added aria-label, aria-required, aria-invalid, aria-describedby, role group - Nav-tree: Added role treeitem, aria-expanded, aria-disabled, aria-hidden on icons - Pagination: Added role navigation, aria-label on buttons with i18n support, aria-live - Navbar: Changed div to semantic nav element with role navigation and aria-label - Added accessibility tests for all modified components - Updated accessibility documentation with new components Co-authored-by: TarsysFonseca <3694626+TarsysFonseca@users.noreply.github.com>
Contributor
Author
Applied accessibility verification to the Changes made (non-breaking):
All existing props and behaviors are preserved. Added accessibility unit tests for each component. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
This PR implements accessibility improvements for the Blip Design System as requested in the issue. The changes follow WCAG 2.1 AA guidelines and include:
Components Enhanced with ARIA Attributes
role="checkbox",aria-checked,aria-disabled,aria-labelrole="button",aria-expanded,tabindexfor keyboard navigationrole="tablist",role="tab",aria-selected,aria-controls,aria-disabledrole="dialog",aria-modal,aria-hidden,aria-labelon close buttonrole="group",aria-label,aria-required,aria-invalid,aria-describedby,role="alert"on messagesrole="treeitem",aria-expanded,aria-disabled,aria-hiddenon iconsrole="navigation",aria-labelon buttons with i18n support,aria-live<nav>element withrole="navigation"andaria-labelTesting
Documentation & Tooling
@storybook/addon-a11yfor Storybook accessibility panelNon-Breaking Changes
All modifications preserve backward compatibility:
<nav>element in navbar maintains the same class structure and stylingOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.