Skip to content

Commit

Permalink
continue -> next, and white bg for dropdowns (#14411)
Browse files Browse the repository at this point in the history
# receive onboarding tweaks

continue -> next

white bg for nationality & country dropdowns

GitOrigin-RevId: d6fcbbb206b005f8dfab9129bc46bfb99db535e4
  • Loading branch information
matthappens authored and Lightspark Eng committed Dec 18, 2024
1 parent 53671cf commit 7ad1622
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/ui/src/components/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export type SelectProps<
zIndex?: number | undefined;
label?: string | undefined;
getOptionStyles?: StylesConfig<Option, IsMulti, Group>["option"];
getControlStyles?: StylesConfig<Option, IsMulti, Group>["control"];
selectRef?: Ref<SelectInstance<Option, IsMulti, Group>> | undefined;
};

Expand All @@ -43,6 +44,7 @@ export function Select<
openMenuOnFocus = true,
tabSelectsValue = false,
getOptionStyles,
getControlStyles,
...rest
}: SelectProps<Option, IsMulti, Group>) {
const theme = useTheme();
Expand All @@ -56,6 +58,9 @@ export function Select<
};
},
control: (styles, state) => {
const controlStyles = getControlStyles
? getControlStyles(styles, state)
: {};
return {
...styles,
transition: "none",
Expand All @@ -77,6 +82,7 @@ export function Select<
state.menuIsOpen || state.isFocused
? textInputBorderColorFocused({ theme })
: textInputBorderColor({ theme }),
...controlStyles,
};
},
indicatorsContainer: (styles) => ({
Expand Down

0 comments on commit 7ad1622

Please sign in to comment.