-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combobox: 🚸 hide caret on select (until options list opened) (#3071)
* 🚸 hide caret on select (until list opened) * 🔥 remove console.log() * 🎨 invert varname for simpler CSS * 🚸 also enable caret on "re-click" (while still focused) * 🚸 DX improvement, placeholders++ * 🚸 (combobox) always show caret for multiple select * 🚸 hide caret on multiselect + isLimitReached * 🔥 remove console.log * 🐛 hide caret when single has a selection (combobox) * 🐛 hide caret if isLimitReached * 🎨 remove unnecessary useState() * 🐛 correct deps for useEffect * 🐛 add maxSelected as dep * Update @navikt/core/react/src/form/combobox/FilteredOptions/filteredOptionsContext.tsx Co-authored-by: Halvor Haugan <[email protected]> * changeset * 🐛 avoid setting placeholder twice * Update .changeset/fresh-boxes-enjoy.md Co-authored-by: Halvor Haugan <[email protected]> * 🔥 remove redundant placeholder --------- Co-authored-by: Halvor Haugan <[email protected]>
- Loading branch information
1 parent
1cea314
commit c98ab95
Showing
8 changed files
with
85 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@navikt/ds-react": patch | ||
"@navikt/ds-css": patch | ||
--- | ||
|
||
Combobox: :lipstick: hide caret on select |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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