-
Notifications
You must be signed in to change notification settings - Fork 54
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
feat: dockview accessibility #701
base: master
Are you sure you want to change the base?
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 658e56d:
|
const randomId = Math.random().toString(36).slice(2); | ||
|
||
this.tabComponentElId = | ||
options.tabComponentElId ?? `tab-${id}-${randomId}`; | ||
this.componentElId = | ||
options.componentElId ?? `tab-panel-${id}-${randomId}`; |
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.
Is this acceptable for creating the fallback IDs? Using Math.random
?
f3c6742
to
23a7bbe
Compare
Wanted to improve the accessibility of the tabs and their panels.
Used the example in https://www.w3.org/WAI/ARIA/apg/patterns/tabs/examples/tabs-automatic/ essentially.
I started working on this yesterday because I need it for my project, and have just noticed the #700 also requests for this.