fix: background colour for disabled select option (#9320)

* Fix disabled bg colour in CheckedTeamSelect

* Fix disabled bg colour in CheckedSelect, CheckedUserSelect, ChildrenEventTypeSelect
This commit is contained in:
Ujwal Kumar authored and GitHub committed 2023-06-04 18:46:19 +00:00
1 parent 2640040359
commit fd9cd1b98b
5 files changed
+1 -24

No files matched your search

@@ -28,12 +28,6 @@ export const CheckedTeamSelect = ({
return (
<>
<Select
styles={{
option: (styles, { isDisabled }) => ({
...styles,
backgroundColor: isDisabled ? "#F5F5F5" : "inherit",
}),
}}
name={props.name}
placeholder={props.placeholder || t("select")}
isSearchable={true}
@@ -27,12 +27,6 @@ export const CheckedUserSelect = ({
return (
<>
<Select
styles={{
option: (styles, { isDisabled }) => ({
...styles,
backgroundColor: isDisabled ? "#F5F5F5" : "inherit",
}),
}}
name={props.name}
placeholder={props.placeholder || t("select")}
isSearchable={false}
@@ -40,12 +40,6 @@ export const ChildrenEventTypeSelect = ({
return (
<>
<Select
styles={{
option: (styles, { isDisabled }) => ({
...styles,
backgroundColor: isDisabled ? "#F5F5F5" : "inherit",
}),
}}
name={props.name}
placeholder={t("select")}
options={options}