fix: center align dropdown indicator when menu is open (#22262)
* fix: vertical misalignment of dropdown indicator icon in select * fix: vertical misalignment of dropdown indicator icon in select
This commit is contained in:
@@ -67,7 +67,7 @@ export const Select = <
|
||||
innerClassNames?.option
|
||||
),
|
||||
placeholder: (state) => cx("text-muted", state.isFocused && variant !== "checkbox" && "hidden"),
|
||||
dropdownIndicator: () => cx("text-default w-4 h-4"),
|
||||
dropdownIndicator: () => cx("text-default", "w-4 h-4", "flex items-center justify-center "),
|
||||
control: (state) =>
|
||||
cx(
|
||||
inputStyles({ size }),
|
||||
@@ -106,6 +106,7 @@ export const Select = <
|
||||
),
|
||||
indicatorsContainer: (state) =>
|
||||
cx(
|
||||
"flex items-center justify-center mt-0.5",
|
||||
state.selectProps.menuIsOpen
|
||||
? hasMultiLastIcons
|
||||
? "[&>*:last-child]:rotate-180 [&>*:last-child]:transition-transform [&>*:last-child]:w-4 [&>*:last-child]:h-4"
|
||||
|
||||
Reference in New Issue
Block a user