[docs][autocomplete] Add persistent search icon to command palette demo#5245
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,463.22 ms 🔺+247.79 ms(+20.4%) | Renders: 78 (+0) | Paint: 2,272.50 ms 🔺+381.87 ms(+20.2%)
…and 4 more (+6 within noise) — details Metric alarms
…and 8 more metric alarms — details 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. |
aarongarciah
left a comment
There was a problem hiding this comment.
Thanks for working on this @mmaxence. I left inline comments on a few things we need to fix before merging.
|
Applied all four: swapped the wrapper to |
Matches the cursor: text pattern used by the combobox multiple, async-multiple, and creatable InputGroup demos: pressing anywhere in the group focuses the input, so the icon and padding area should show the I-beam affordance. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Matches the inline svg icon convention used across demos. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Fixes #4183
The command palette input is labelled by its placeholder only, which disappears on type. This adds a persistent search icon to the input, as agreed in the issue. Both demo variants updated.
The icon is aria-hidden and the input keeps its aria-label. Its colour matches the placeholder grey, above 3:1 contrast in light and dark. The focus outline moves to the input row so icon and input read as one field. Scoped to the icon only, none of the highlight styling from #4236.