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(material/tabs): allow for content tabindex to be customized #21912
feat(material/tabs): allow for content tabindex to be customized #21912
Conversation
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.
We should probably also add a style for strong-focus-indicators for a tab body with focus
223f8cf
to
3df903b
Compare
Added the strong focus indicator classes to the body. |
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.
LGTM
This is causing a bunch of screenshot failures where the content gets bunched up and does not take up the whole horizontal space as it should. Any ideas what may be the cause? |
ffbfe96
to
e897fb6
Compare
Sorry for the delay @annieyw, I just noticed your comment when coming back to rebase the PR. This sounds weird, because the only style changes are:
I've pushed a change to address point 2. Can we re-run the presubmit? |
In some cases, adding a `tabindex` to a `tabpanel` can improve accessibility, however that is currently impossible with our setup, because the element isn't exposed. These changes add an input that allows consumers to customize the `tabindex` based on their use case. We tried to tackle this in an earlier PR (angular#14808), but it was decided not to proceed, because the `tabindex` isn't relevant for all use cases. This approach should be a bit more flexible since it allows users to opt into it. Fixes angular#21819.
e897fb6
to
d27e5e7
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
In some cases, adding a
tabindex
to atabpanel
can improve accessibility, however that is currently impossible with our setup, because the element isn't exposed. These changes add an input that allows consumers to customize thetabindex
based on their use case.We tried to tackle this in an earlier PR (#14808), but it was decided not to proceed, because the
tabindex
isn't relevant for all use cases. This approach should be a bit more flexible since it allows users to opt into it.Fixes #21819.