Skip to content

chore(site): enable role-has-required-aria-props oxlint rule - #29188

Merged
jeremyruppel merged 1 commit into
mainfrom
enable-role-has-required-aria-props
Sep 10, 2026
Merged

jeremyruppel merged 1 commit into
mainfrom
enable-role-has-required-aria-props

Conversation

@jeremyruppel

Copy link
Copy Markdown
Contributor

Enables the role-has-required-aria-props oxlint rule (jsx-a11y/useAriaPropsForRole), moving it out of the migration backlog and into the enforced a11y rules.

Fixes the two resulting violations:

  • ModelSelector.tsx: wire aria-controls on the combobox trigger to a useId-generated id set on the listbox CommandList.
  • Autocomplete.tsx: add aria-selected to each option, driven by the highlighted index.

Note

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

Enable the jsx-a11y role-has-required-aria-props rule and fix the two
resulting violations: wire aria-controls to the listbox on the model
selector combobox trigger, and add aria-selected to autocomplete options.
@jeremyruppel
jeremyruppel marked this pull request as ready for review September 10, 2026 18:44
@jeremyruppel
jeremyruppel added this pull request to stack #29190 September 10, 2026 18:52
@jeremyruppel
jeremyruppel merged commit 5316377 into main Sep 10, 2026
53 of 54 checks passed
@jeremyruppel
jeremyruppel deleted the enable-role-has-required-aria-props branch September 10, 2026 18:59
jeremyruppel added a commit that referenced this pull request Sep 10, 2026
Enables the `heading-has-content` oxlint rule
(jsx-a11y/useHeadingContent), moving it out of the migration backlog and
into the enforced a11y rules.

Fixes the three heading wrapper components that spread props onto a bare
heading element (`AlertTitle`, and the
`SectionHeading`/`FilterGroupHeading` in the agents filter popover) so
they destructure and render `children` explicitly, letting the rule
verify the headings have content.

> [!NOTE]
> Stacked on top of #29188. Review and merge that PR first.

> [!NOTE]
> This PR was generated by Coder Agents on behalf of @jeremyruppel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants