Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
tab-active
style for tabs with aria-selected="true"
att…
…ribute Supplement the `.tab-active` modifier to also support elements rendered with `[aria-selected="true"]`. When an element with `[role="tab"]` nested within a `[role="tablist"]` becomes "active" or "selected", its `[aria-selected]` attribute must be set to `"true"`. Similarly, when a tab is inactive, its `[aria-selected]` must be removed or set to `"false"` (according to the [WAI ARIA Guidelines][]). Since all compliant tab implementations must set this attribute, and *not all* compliant tab implementations provide hooks to configure CSS Class List changes to be made alongside those attribute changes, this commit modifies the `tab.css` files to target either `.tab-active` or `[aria-selected="true"]` using the CSS [:is][] psuedo-class. [WAI ARIA Guidelines]: https://www.w3.org/WAI/ARIA/apg/patterns/tabs/ [:is]: https://developer.mozilla.org/en-US/docs/Web/CSS/:is
- Loading branch information