E-mail List Archives
Re: Custom tabs with a single tab panel: does it poseaccessibility issues?
From: tim.harshbarger
Date: Aug 1, 2023 9:37AM
- Next message: glen walker: "Re: Custom tabs with a single tab panel: does it pose accessibility issues?"
- Previous message: Matson, Eric (ecmatson@uidaho.edu): "Re: WCAG 4.1.3 - Status Messages"
- Next message in Thread: glen walker: "Re: Custom tabs with a single tab panel: does it pose accessibility issues?"
- Previous message in Thread: Steve Green: "Re: Custom tabs with a single tab panel: does it poseaccessibility issues?"
- View all messages in this Thread
It should be OK to do that.
There may be a difference in the implementation.
In a situation where all the tab panels exist in the DOM, you can set the aria-controls attribute to point to the relevant tab panel for each tab.
In a situation where the tab panels only exist in the DOM when a tab is selected, you will want to add an aria-controls attribute only to the currently selected tab.
Thanks,
Tim
- Next message: glen walker: "Re: Custom tabs with a single tab panel: does it pose accessibility issues?"
- Previous message: Matson, Eric (ecmatson@uidaho.edu): "Re: WCAG 4.1.3 - Status Messages"
- Next message in Thread: glen walker: "Re: Custom tabs with a single tab panel: does it pose accessibility issues?"
- Previous message in Thread: Steve Green: "Re: Custom tabs with a single tab panel: does it poseaccessibility issues?"
- View all messages in this Thread