-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make tabs component more accessible, export button staticclasses (…
…#439) * pass through `id` to the tab; `aria-selected` always has a value * Update Tabs.vue * export StaticClasses from Button * add `aria-controls` to tab * add aria-selecteed="false" test * add tabpanel to tests * add changelog * Update App.tsx * add tab panels to tests * Update App.tsx * Update FrameworkSwitch.vue * add comment explaining required prop `aria-controls` * Update React readme and add missing `role=tabpanel` * do not put mock tabpanels in the framework lol it appears on every component -.- * Update ReadMe.md
- Loading branch information
1 parent
1d83c4a
commit 5bddc81
Showing
15 changed files
with
276 additions
and
59 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,13 @@ | ||
--- | ||
'@cypress-design/constants-tabs': major | ||
'@cypress-design/react-tabs': major | ||
'@cypress-design/vue-tabs': major | ||
'@cypress-design/react-button': patch | ||
'@cypress-design/vue-button': patch | ||
|
||
--- | ||
|
||
- Tabs component now requires `aria-controls` prop | ||
- Tab `id` is now passed through as an `id` attribute on the tab | ||
- Inactive tabs now have `aria-selected=false` | ||
- Button component now exports StaticClasses |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export { default } from './Button' | ||
export { | ||
VariantClassesTable, | ||
StaticClasses, | ||
SizeClassesTable, | ||
type ButtonVariants, | ||
} from '@cypress-design/constants-button' |
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
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
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
Oops, something went wrong.