Skip to content

Commit

Permalink
feat: add focus indicator in select input
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorusclarence authored and ppdbultimate committed Jan 3, 2024
1 parent 855d37e commit a05d6d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/forms/SearchableSelectInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ export default function SearchableSelectInput({
option: (styles, state) => ({
...styles,
color: 'black',
background: state.isSelected ? 'var(--color-primary-100)' : 'white',
background: state.isFocused
? 'var(--color-primary-50)'
: state.isSelected
? 'var(--color-primary-100)'
: 'white',
':hover': {
background: '#E5E7EB',
},
Expand Down

1 comment on commit a05d6d1

@vercel
Copy link

@vercel vercel bot commented on a05d6d1 Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.