-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(tabs): update headerWidth story to use unique id for each tab child FE-4440 #4568
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 42be1eb:
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
9297cb0
to
ada2e58
Compare
8644e7c
to
713e0a9
Compare
|
fc0449a
to
8ebb263
Compare
I had a look at the before/after on this update and its not a problem for me, the visuals look fine. all good ✅ |
15fb064
to
4055d86
Compare
The story has multiple `Tab` components witht the same `tabId` which causes axe warnings to be generated fix #4524
…l and li elements `TabHeader` now renders a `div` container and `TabTitle` renders either a `button` or `a` element. This fixes accesibility issues raised against the old implementation relating to focusable children not being read out by screen readers: `tabIndex` for `ValidataionIcon` is now null and `customLayout` story has been updated to remove `ActionPopover`. fix #4517
4055d86
to
42be1eb
Compare
🎉 This PR is included in version 101.3.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fix #4517
fix #4524
Proposed behaviour
The
headerWidth
story has multipleTab
components with the sametabId
which causes axe warnings to be generatedTabHeader
now renders adiv
container andTabTitle
renders either abutton
ora
element. This fixes accessibility issues raised against the old implementation relating to focusable children not being read out by screen readers:tabIndex
forValidationIcon
is now null andcustomLayout
story has been updated to removeActionPopover
.Current behaviour
Renders
ul
andli
elements, has multiple accessibility errors on storiesNo
d.ts
files forTabTitle
andTabHeader
Checklist
d.ts
file added or updated if requiredQA
Additional context
Testing instructions
Test all Tabs stories for accessibility errors and to confirm no regressions after refactor away from
ul
li
The following CodeSandbox is an example of the broken behaviour.
You can see the new behaviour by looking at the version in the comment by
codesandbox[bot]
.