Edit content TabList: selected tab's icon/label are hidden by its own selection indicator - a11y
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
- Domain
- accessibility, frontend
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
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
- Open the editor for any content item (
@@edit). - 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.
- Select "Metadata" (click, or
ArrowRightwith focus on the tablist). - 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. TheSelectionIndicator(quanta-tab-indicator, classinset-0 -z-10) is likely rendering above the tab's content instead of behind it, possibly because theisolateclass intabStyles(packages/quanta/src/components/Tabs/Tabs.tsx:111-177) creates a new stacking context where the indicator's-z-10doesn'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
SelectionIndicatorrenders 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
- Dominant language
- JavaScript
- Stars
- 10
- Forks
- 9
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 54
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from plone/aurora
-
01 type: bug 41 lvl: easy
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 2 days
-
01 type: bug 30 needs: triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 2 days
-
01 type: bug 99 tag: UX Accessibility
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
01 type: bug 30 needs: triage
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 2 days
-
01 type: bug 02 type: regression 30 needs: triage 99 tag: UX Accessibility
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
Similar issues
-
accessibility bug dark-mode dashboards
Difficulty 1/5 Under an hour Newbie friendliness 84/100
quarto-dev/quarto-cli#15447 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
521xueweihan/HelloGitHub#4655 ·
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount duePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
bug CRIT-3
Difficulty 1/5 Under an hour Newbie friendliness 70/100
NASA-AMMOS/anms#426 ·