Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore(site): enable oxlint role-supports-aria-props rule - #29192

Merged
jeremyruppel merged 2 commits into
jeremyruppel/enable-anchor-ambiguous-textfrom
jeremyruppel/enable-role-supports-aria-props
Sep 10, 2026
Merged

chore(site): enable oxlint role-supports-aria-props rule#29192
jeremyruppel merged 2 commits into
jeremyruppel/enable-anchor-ambiguous-textfrom
jeremyruppel/enable-role-supports-aria-props

Conversation

@jeremyruppel

Copy link
Copy Markdown
Contributor

Enables the role-supports-aria-props oxlint rule (jsx-a11y), moving it out of the migration backlog and setting it to error.

Stacked on top of #29191. Review that PR first; the base of this PR is its branch.

Fixes for the two violations the rule surfaced

  • Autocomplete.tsx (select-only trigger button): removed aria-invalid from the <button>. aria-invalid is not exposed by the implicit button role, so it had no effect for assistive tech. The error message linkage via aria-describedby (a global attribute) is kept. The only consumer that sets an invalid state (ModelIdentifierField) uses the inlineSearch variant, which renders an <input role="combobox"> that still keeps aria-invalid (valid there).
  • AgentLatency.tsx (latency popover trigger): the trigger was a <span role="presentation" aria-label="latency">; presentation does not support aria-label, and a presentational role on an interactive trigger is wrong. Converted it to a real <button> with reset styling so it stays visually identical (inline colored text, no button chrome) while being a focusable, correctly-labeled control.

Verification

  • oxlint --deny-warnings: 0 warnings, 0 errors.
  • biome lint --error-on-warnings on the changed files: clean.
  • tsc -p .: clean.
  • Storybook visual check of components/AgentRow --example: latency renders as inline colored text (no boxed button) and clicking it still opens the "Latency" popover.

This PR was generated by Coder Agents on behalf of @jeremyruppel.

@jeremyruppel
jeremyruppel marked this pull request as ready for review September 10, 2026 20:03
@jeremyruppel
jeremyruppel added this pull request to stack #29193 September 10, 2026 20:07

@aqandrew aqandrew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I fully support turning AgentLatency's popover trigger into a focusable button 🙌🏽

@jeremyruppel
jeremyruppel merged commit bf50641 into main Sep 10, 2026
31 checks passed
@jeremyruppel
jeremyruppel deleted the jeremyruppel/enable-role-supports-aria-props branch September 10, 2026 21:30
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants