Skip to content

Commit

Permalink
Add dropdownClassname prop to select component
Browse files Browse the repository at this point in the history
  • Loading branch information
jaclarke committed Apr 25, 2024
1 parent 95be9db commit 69abc0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared/common/ui/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export type SelectItems<T = any> = {

export type SelectProps<T = any> = {
className?: string;
dropdownClassName?: string;
fullScreen?: boolean;
fullScreenTitle?: string;
title?: string | JSX.Element;
Expand Down Expand Up @@ -58,6 +59,7 @@ type FlattenedItems = (

export function Select<T extends any>({
className,
dropdownClassName,
fullScreen,
fullScreenTitle,
title,
Expand Down Expand Up @@ -193,7 +195,7 @@ export function Select<T extends any>({

<div
ref={dropdownRef}
className={cn(styles.tabDropdown, {
className={cn(styles.tabDropdown, dropdownClassName, {
[styles.tabDropdownOpen]: dropdownOpen,
[styles.rightAlign]: !!rightAlign,
[styles.fullScreen]: isFullscreenMobile,
Expand Down
1 change: 1 addition & 0 deletions shared/common/ui/select/select.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

svg {
color: var(--svg-color, --select-option-color, #6b6b6b);
flex-shrink: 0;
}

&:hover {
Expand Down

0 comments on commit 69abc0c

Please sign in to comment.