Repository navigation
feat(combobox): deprecate variant="inline-listbox" with multiple - #3296
Merged
interactivellama merged 4 commits intoNov 11, 2026
Merged
Conversation
The SLDS markup puts role="combobox" on the .slds-combobox wrapper and role="textbox" on the input, but aria-controls was only set on the input. An expanded role="combobox" without aria-controls fails axe aria-required-attr (W-24839159). Set aria-controls on the wrapper in all six render paths: the listbox id for base, inline-listbox and readonly, and the dialog id (following any id set through popover props) for variant="popover". It is set only while the target is rendered, and the input uses the same value.
The `.slds-combobox` wrapper had role="combobox" with aria-expanded,
aria-haspopup, aria-controls and aria-owns (the ARIA 1.1 pattern), and
the input was role="textbox". The SLDS blueprint and ARIA 1.2 put
role="combobox", aria-expanded, aria-haspopup and aria-controls on the
focusable input, with the wrapper presentational.
Move them to the input in all six render paths and drop aria-owns.
aria-expanded follows the rendered listbox, so it is false while
disabled. aria-autocomplete="list" stays only on the autocomplete
variants (base, inline-listbox); readonly and popover take no typed
input.
axe reports no aria-required-attr violation in any variant, open or
closed.
BREAKING CHANGE: role="combobox" and its aria-expanded, aria-haspopup
and aria-controls are on the input, not the .slds-combobox wrapper, and
the wrapper no longer sets aria-owns. Queries such as
getByRole('combobox') now return the input.
SLDS deprecated the inline listbox. It renders the selected pills before the input, so screen reader users meet the selections before the field, and its pill listbox has no accessible name (axe aria-input-field-name). Warn once and point to variant="base" with multiple, which lists the selections after the input in a labelled listbox.
interactivellama
force-pushed
the
feat/combobox-deprecate-inline-multiple
branch
from
November 11, 2026 07:39
54e4efb to
401f34a
Compare
interactivellama
changed the base branch from
master
to
fix/combobox-aria-controls
November 11, 2026 07:39
Niznikr
previously approved these changes
Nov 11, 2026
interactivellama
dismissed
Niznikr’s stale review
November 11, 2026 19:27
The base branch was changed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Additional description
Deprecates
Comboboxvariant="inline-listbox"withmultiple. It keeps working and logs a one-time warning that points tovariant="base"withmultiple.inline-listboxwithoutmultipleis unaffected.Why
combobox/deprecated-inline-listbox). The current ListboxPills blueprint puts a labelled listbox of pills after the combobox.role="listbox"with no accessible name, so axe reportsaria-input-field-name. The label is on the innerrole="group"list. That violation is already on master. It isn't fixed separately here, because the variant is going away andbasemultiple passes axe.Changes
check-props.js: adeprecated-property-valuewarning whenvariant === 'inline-listbox' && multiplevariantdoc comment notes the deprecation. TS@deprecatedcan't target one value combined with another prop.InlineMultipleandInlineMultipleLoadingstories are labelled "(deprecated)" and their descriptions point to base. Story export names are unchanged, so the snapshots don't change.component.jsonheading is labelled deprecated.### Deprecatedentry with the migrationThe removal in the next major is tracked in ROADMAP.md on the v11 P1 theme 3 branch.
Migration: replace
variant="inline-listbox"withvariant="base"(keepmultiple). The selected pills move below the input.npm run test:cipasses: 81 files, 1592 tests, 0 lint errors.CONTRIBUTOR checklist (do not remove)
Please complete for every pull request.
Green gate — all of these must pass locally (CI runs the same):
npm run lintpasses with 0 errors (npm run lint:fixto auto-fix). Warnings are the tracked gradual-migration backlog; do not add new errors.npm run typecheckis clean (tsc --noEmit).npm test -- --runpasses — this runs both Vitest projects (jsdomunit+ real-browserbrowser) and the story HTML snapshots. If you changed rendered markup on purpose, update snapshots withnpm test -- --run -uand review the diff.npm run buildsucceeds (type-check + Vite library build +.d.ts+ entry shims).Behavior & docs:
components/button/__tests__). New props and bug fixes should get a regression test. Tests that genuinely need a real browser (focus traversal, layout/measurement, canvas) go in a*.browser.test.jsxfile (thebrowserproject); everything else is jsdom.npm run storybook→ http://localhost:6007/. Confirm the story actually renders and behaves (deprecated Storyshots/Karma are gone; there is no separate browser-tests server).content/visualPickerFigure, render props likerenderItem,iconprops,events), not assumptions — a common source of "component looks broken" reports has been stories authored against the wrong API. Cross-check againstcomponents/<name>/__examples__..d.ts(they're generated by the build); JS consumers rely on them via editor type-acquisition.REVIEWER checklist (do not remove)
CIworkflow: lint, typecheck, test, build). Chromatic visual review, if configured, has been checked.components/__tests__/__snapshots__/story-snapshots.test.jsx.snap).@salesforce/design-system-react/components/<name>and nested paths resolve for ESM, CJS, and types). Removing/renaming a public component or export is a breaking change →feat!:/BREAKING CHANGE:and a major version bump.