Repository navigation
[combobox][autocomplete] Add InputGroup part - #3745
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
72defd5 to
27e98f7
Compare
d885a45 to
8447db6
Compare
This comment was marked as outdated.
This comment was marked as outdated.
f7153ae to
23abd11
Compare
23abd11 to
dd18620
Compare
Codex ReviewOverviewThis patch adds Findings (None)No blocking issues found in this patch. Confidence: 4/5High confidence from a full diff review, focused browser spot-checks of the updated Combobox docs demos, and passing targeted tests for Notes
|
michaldudak
left a comment
There was a problem hiding this comment.
The implementation looks OK. I'd just add an explanation in the docs that this is an optional part that aims to help style the control.
It's not purely cosmetic as it groups the input and adjacent controls with But yeah, the old pattern doesn't break with this still, but I'd recommend using it going forward since it simplifies things |
The
InputGrouppart is added to make the styled input for multiple and single selection the same, instead of styling theChipspart orInputpart separately depending on the selection mode.Adds a(deferring to a new PR)[data-highlighted]state toInputGrouppart to indicate when virtual focus is on itanchoronPositionerto theInputGrouppart when it exists, preventing the need to manually setanchorto<Combobox.Chips>(closes Combobox.Positioner aligns to Input element instead of parent container when using render prop #3943)