-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Tabs] Improve accessibility #16384
[Tabs] Improve accessibility #16384
Conversation
Details of bundle changes.Comparing: 42f78c6...8d02f31
|
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.
Whoops noticed it was a draft afterwards, Looks good so far :)
Should add that I was already aware of typescript complaining about |
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.
I usuallly just check title and paragraph on drafts so I need a friendly ping in case something is open for discussion.
It will help with https://darekkay.com/blog/accessible-ui-frameworks/ :) |
I had forgotten, but that post was what originally inspired me to look at it! |
85ddc9d
to
36ddc06
Compare
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.
@mbrookes I have tried an approach to minimize the boilerplate as well as fix the build. Let me know what you think about it.
👍 for improving our demos 😍
f88f6c2
to
8141a0e
Compare
8141a0e
to
6d10ea6
Compare
This was an earlier attempt at improving the accessibility of the Tabs component. The plan was to complete the rest of the demos once the approach is agreed.
It originally had the beginnings of better keyboard support, but I removed that after it was going to be handled either separately or more holistically. As it stands better ARIA support without proper keyboard support is a bit pointless, but hopefully it's still a step in the right direction.
Regarding TabPanel, even though it's small, since we repeat it in every demo, I wonder if this should be a fully fledged component?
It would also be good to be able to get rid of the some of the boilerplate by automating the id generation, similar to what we do in SpeedDial. The simple tabs demo is a lot more verbose now.