Skip to content

[audit] Indicator: a caller can switch off the decorative contract: aria-hidden is emitted BEFORE {...rest} on the sibling indicators, and on CheckIndicator's GLYPH path it is Icon's own a11y default which Icon deliberately lets rest override — so all three render aria-hidden="false" on request, and CheckIndicator disagrees with itself between its two paths #4918

Closed

Description

@cixzhang

Found by a component audit of Indicator, mode O, rubric v1.2.1, at commit cd0b9f6340.

  • Rule: P3 (§3 Public API contract) — see the Component Audit Rubric.
  • Ledger row: Indicator on the component scores page — recorded C 82.4 with 1 open BLOCK(s).
  • Finding: a caller can switch off the decorative contract: aria-hidden is emitted BEFORE {...rest} on the sibling indicators, and on CheckIndicator's GLYPH path it is Icon's own a11y default which Icon deliberately lets rest override — so all three render aria-hidden="false" on request, and CheckIndicator disagrees with itself between its two paths
  • Evidence: Measured at cd0b9f6, rendering : CheckIndicator (glyph path) -> "false", CheckboxIndicator -> "false", RadioIndicator -> "false". CheckIndicator's CHILDREN path spreads rest first (CheckIndicator.tsx:118) and correctly emits "true", which is the inconsistency. Sources: CheckboxIndicator.tsx:219, RadioIndicator.tsx:183 (rest last); Icon.tsx:317-322 spreads a11yProps before {...props} by design. Rubric P3 names 'owned aria-* set AFTER {...rest}' at BLOCK severity. The independent pass reported 2 of 3; re-measured here as 3 of 3. Pre-existing — untouched by fix(indicator): a falsy child no longer deletes the state mark (#4893) #4913 and fix(indicator): close the six audit blocks on the indicator layer #4890, missed by all three prior passes. Harm is the doc's own (Indicator.doc.mjs:241): an indicator that is not aria-hidden is announced twice.

Closing protocol

Resolving this requires:

  1. Re-run the audit for Indicator after the fix — the whole component, not the diff (the rubric's "Grading a whole component" section).
  2. Put the visual results in the PR description — before/after screenshots of the affected states. The rendered-design section is graded from those.
  3. Update the ledger with the new score and clear this BLOCK (<scorecard> | node scripts/score-ledger.mjs --record Indicator --from - --push).
  4. Close this issue linking that PR.

If the recorded score doesn't move, either the fix or the audit is wrong.

Activity

  1. added
    hardening
    on Aug 11, 2026
  2. added this to the 0.4.0 milestone on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    hardening

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions