Edit content TabList: selected tab's icon/label are hidden by its own selection indicator - a11y

Open Beginner friendly
#501 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
react, typescript

Research direction

Start in packages/quanta/src/components/Tabs/Tabs.tsx, especially tabStyles and the SelectionIndicator used by the segmented variant. Trace their stacking and positioning classes, then check the content editor’s Blocks and Metadata tabs. Done when both selected tabs keep their icon and label visible and the focus ring lands on visible content during click and arrow-key navigation.

Written by the indexing model from the issue text.

Description

01 type: bug 99 tag: UX Accessibility
Description

In the "Editor mode" tablist (data-variant="segmented", packages/quanta/src/components/Tabs/Tabs.tsx) in the content editor, the currently selected tab renders visually blank (no icon, no label), while the non-selected tab renders normally. The behavior is inverted from what's expected: the active item should be the most prominent one, not the one that disappears.

Steps to reproduce
  1. Open the editor for any content item (@@edit).
  2. With the "Blocks" tab selected (blocks panel visible), look at the segmented control: "Blocks" renders blank (just an empty box, no icon/text), "Metadata" renders normally.
  3. Select "Metadata" (click, or ArrowRight with focus on the tablist).
  4. Observe: now "Metadata" is blank and "Blocks" renders normally.
Observed result
  • The tab matching the active panel never shows its icon/label, only an empty box.
  • The inactive tab shows its icon and label normally.
  • Verified via DOM: the selected tab's text and icon are present in the HTML, with normal computed color/opacity, so it's not missing content or transparent text. The SelectionIndicator (quanta-tab-indicator, class inset-0 -z-10) is likely rendering above the tab's content instead of behind it, possibly because the isolate class in tabStyles (packages/quanta/src/components/Tabs/Tabs.tsx:111-177) creates a new stacking context where the indicator's -z-10 doesn't behave as expected.
Expected result

Both the selected and the non-selected tab should display their icon and label normally, with the selection indicator appearing behind the content (as a background), not on top of it.

Accessibility impact
  • Name, Role, Value (WCAG 4.1.2): the accessible name is correct, but no visible name renders for the selected tab, a visual/programmatic mismatch.
  • Keyboard focus: arrowing to the selected tab lands the focus ring on a blank box.
  • Cognitive load: without a screen reader, users can only tell the active mode from the panel content, not from the control itself.
Tasks
  • Find why the SelectionIndicator renders on top of the selected tab's content instead of behind it
  • Fix the stacking/z-index so icon and label stay visible on the selected tab
  • Verify the fix on both tabs (Blocks and Metadata), via click and via keyboard (ArrowLeft/ArrowRight)
  • Confirm the focus ring no longer lands on a blank box
Screenshot 2026-12-01 at 16 02 41 Screenshot 2026-12-01 at 16 02 49
Dominant language
JavaScript
Stars
10
Forks
9
Avg merge
4d 7h
Merged PRs (30d)
54

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plone/aurora

All issues in plone/aurora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.