Skip to content

Commit

Permalink
restyle dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
lincent committed Aug 23, 2024
1 parent fa42057 commit 297c11d
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions air-quality-ui/src/components/header/ForecastWindowSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const selectStyling: StylesConfig = {
...baseStyles,
background: 'black',
height: '100%',
borderColor: state.isFocused ? 'white' : '#444',
borderColor: state.isFocused ? 'white' : '#3b3b3b',
}),
singleValue: (baseStyles) => ({
...baseStyles,
Expand All @@ -35,9 +35,25 @@ const selectStyling: StylesConfig = {
...baseStyles,
color: 'white',
}),
dropdownIndicator: (baseStyles) => ({
...baseStyles,
cursor: 'pointer',
}),
option: (baseStyles, state) => ({
...baseStyles,
cursor: 'pointer',
color: state.isSelected ? '#2f2f2f' : 'white',
backgroundColor: state.isSelected
? state.isFocused
? '#62a5f4'
: '#9ecaf8'
: state.isFocused
? '#373b3e'
: baseStyles.backgroundColor,
}),
menu: (baseStyles) => ({
...baseStyles,
color: 'black',
backgroundColor: '#2f2f2f',
}),
}

Expand Down

0 comments on commit 297c11d

Please sign in to comment.