Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Sets isActive style for SelectTag
Browse files Browse the repository at this point in the history
  • Loading branch information
tinkertrain committed May 26, 2021
1 parent e3fbbb7 commit ef7ef32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/DropList/DropList.togglers.jsx
Expand Up @@ -217,7 +217,8 @@ export const SelectTag = forwardRef(
({ isActive = false, text = '', onClick = noop, error, ...rest }, ref) => {
const className = classNames(
'DropListToggler SelectTagToggler',
error && 'is-error'
error && 'is-error',
isActive && 'is-active'
)
return (
<SelectUI
Expand Down Expand Up @@ -267,6 +268,7 @@ const SelectUI = styled('button')`
padding-right: 10px;
}
&.is-active,
&:focus {
outline: 0;
box-shadow: inset 0 0 0 2px ${getColor('blue.500')};
Expand Down

0 comments on commit ef7ef32

Please sign in to comment.