Merge pull request #73 from satoshilabs/fix-select-arrow-selection

fix: selected option wasn't visible in Select when using arrow keys
pull/60/head
Vladimir Volek 6 years ago committed by GitHub
commit a526232aaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,10 +49,10 @@ const styles = isSearchable => ({
borderRight: `1px solid ${colors.DIVIDER}`,
borderBottom: `1px solid ${colors.DIVIDER}`,
}),
option: (base, { isSelected }) => ({
option: (base, { isFocused }) => ({
...base,
color: colors.TEXT_SECONDARY,
background: isSelected ? colors.LANDING : colors.WHITE,
background: isFocused ? colors.LANDING : colors.WHITE,
borderRadius: 0,
'&:hover': {
cursor: 'pointer',

Loading…
Cancel
Save