-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COM-156: Prevent overlapping of clear-button with select-arrow (#1363)
Since the end-adornment for the clear-button needs absolute positioning, it is no longer possible to use the `clearable` prop in combination with an `endAdornment`. However, this is not a common use-case, and an `endAdornment` on a select is generally not supported by MUI, see: mui/material-ui#17799. An alternative would have been to position the select-arrow relative. Unfortunately, this would cause the clickable element that opens the select to shrink and prevent opening the select by clicking the select-arrow. Since this would confuse users, the `endAdornment` is now also positioned absolutely. | Previously | Now | | ---------- | --- | | <img width="400" alt="Previously" src="https://github.com/vivid-planet/comet/assets/6264317/886ac1f4-c1c5-49c2-b8ac-0ab74bfa6bf3"> | <img width="400" alt="Now" src="https://github.com/vivid-planet/comet/assets/6264317/c89be77b-3dea-4c72-a84a-2f6ce6890c88"> | --------- Co-authored-by: Thomas Dax <thomas.dax@vivid-planet.com> Co-authored-by: Johannes Obermair <48853629+johnnyomair@users.noreply.github.com>
- Loading branch information
1 parent
17f977a
commit fe310df
Showing
4 changed files
with
58 additions
and
6 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 @@ | ||
--- | ||
"@comet/admin-theme": patch | ||
"@comet/admin": patch | ||
--- | ||
|
||
Prevent the clear-button and the select-arrow from overlapping when using `FinalFormSelect` with the `clearable` prop. |
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