-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ProgressBar: Adjust
ProgressBar.Item
for accessibility (#4878)
* Adjust `ProgressBar.Item` for accessibility * Move warning * Include if progressAsNumber === 0 * Update snapshots, tests, move aria-* attributes * Update warning * Update `ProgressBar.Item` props * Account for `0` * Add changeset * Change children conditional * Remove warning, add default 0 * Fix lint, test * Update packages/react/src/ProgressBar/ProgressBar.tsx Co-authored-by: Josh Black <joshblack@github.com> * Update packages/react/src/ProgressBar/ProgressBar.tsx Co-authored-by: Josh Black <joshblack@github.com> * Update packages/react/src/ProgressBar/ProgressBar.tsx Co-authored-by: Josh Black <joshblack@github.com> --------- Co-authored-by: Josh Black <joshblack@github.com>
- Loading branch information
Showing
4 changed files
with
117 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/react': minor | ||
--- | ||
|
||
Move `aria-*` attributes to `ProgressBar.Item` and marks `ProgressBar.Item` as `role="progressbar". |
This file contains 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
This file contains 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
This file contains 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
73312d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conspiracy to execute under io ideology
W,alk away mission now known and reac ti v e measure implemented
ORyan sugges±ion. Or i on€£¥₩☆●○•°