You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Widgets page and Customizer: The inserter should not use ARIA tabs semantics #61653
In the Widgets page, the Inserter doesn't need tabs because it is only supposed to show the 'Blocks' panel.
#61510 hid the entire panel header via CSS. The panel header contains the wrapper with role="tablist" that contains the 3 role="tab" panels. They're now hidden with display: none which makes them not perceivable by assistive technology. However, the panel with blocks still use a role="tabpanel", which is not associated with any 'tab'. As such, the ARIA tabs pattern is semantically broken.
Instead of using CSS, the inserter in the Widgets page should render a dirrerent UI that doesn't use the ARIA tabs pattern in the first palce, as it was before the latest changes to reunify the editor.
changed the title [-]Widgets page: The inserter should not use ARIA tabs semantics[/-][+]Widgets page and Customizer: The inserter should not use ARIA tabs semantics[/+]on May 15, 2024
I updated this issue title to include the Customizer.
After latest changes, the 'inserter' panel in Customize > Widgets shows 3 tabs, including Patterns and Media. It is expected to only show the Blocks panel.
Also, after #61421 the panel now has two 'Close' buttons. Screenshot:
On latest trunk:
On WordPress 6.5:
As mentioned above, the unnecessary tabs can't be hidden with CSS. Instead, the panel should render a UI that doesn't use ARIA tabs.
Activity
[-]Widgets page: The inserter should not use ARIA tabs semantics[/-][+]Widgets page and Customizer: The inserter should not use ARIA tabs semantics[/+]afercia commentedon May 15, 2024
I updated this issue title to include the Customizer.
After latest changes, the 'inserter' panel in Customize > Widgets shows 3 tabs, including Patterns and Media. It is expected to only show the Blocks panel.
Also, after #61421 the panel now has two 'Close' buttons. Screenshot:
On latest trunk:
On WordPress 6.5:
As mentioned above, the unnecessary tabs can't be hidden with CSS. Instead, the panel should render a UI that doesn't use ARIA tabs.
Rishit30G commentedon Mar 20, 2025
Thanks for sharing the issue,
I could also identify that the second cross button doesn't work, sharing a screencast for the same:
Screen.Recording.2025-03-20.at.4.35.36.PM.mov
Would it be a good idea to remove it from here, will need to check it's dependency 🤔
https://github.com/WordPress/gutenberg/blob/c30b8c233fe90937b45c0e36ad6a213ed185878d/packages/block-editor/src/components/tabbed-sidebar/index.js#L69C1-L75C8
sarthaknagoshe2002 commentedon May 15, 2025
I was not able to reproduce this issue any more.
can someone could also get this re-checked.
Infinite-Null commentedon May 15, 2025
Hi @sarthaknagoshe2002 I was able to reproduce the issue:
Screen.Recording.2025-05-15.at.5.54.15.PM.mov
Infinite-Null commentedon May 15, 2025
My Bad, I gave the wrong recording! I have updated the above comment!