-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mp/inactive-button-a11y-updates' of https://github.com/…
…primer/view_components into mp/inactive-button-a11y-updates
- Loading branch information
Showing
4 changed files
with
11 additions
and
0 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,11 @@ | ||
--- | ||
"@primer/view-components": patch | ||
--- | ||
|
||
Updates 'inactive' state for buttons based on feedback from the a11y team: | ||
- inactive buttons need to meet the color contrast ratio minimum | ||
- inactive buttons shouldn't have aria-disabled since they can still accept interactions such as: | ||
- hover/focus to show a tooltip | ||
- click/activate to show a dialog with more detailed info on why it's inactive | ||
|
||
<!-- Changed components: Button --> |
Binary file modified
BIN
-897 Bytes
(98%)
...enshots/snapshots.test.ts-snapshots/primer/alpha/banner/dismissible/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.17 KB
(91%)
...screenshots/snapshots.test.ts-snapshots/primer/beta/button/inactive/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.92 KB
(92%)
...screenshots/snapshots.test.ts-snapshots/primer/beta/button/inactive/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.