Skip to content

Commit

Permalink
fix: fix issue with hover and selected list items (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydw committed Jul 7, 2021
1 parent f6a1981 commit cf4f2ac
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions src/sass/ui/_list.sass
Expand Up @@ -107,16 +107,32 @@
opacity: 0
transition: opacity $le-speed-xfast

&.le__clickable
position: relative

& > *
position: relative
z-index: 1

&.le__clickable::after
bottom: 0
content: ''
display: block
left: -15vw
position: absolute
right: 0
top: 0
z-index: 0

&.le__clickable:hover
background-color: var(--color-tertiary)
color: var(--color-on-tertiary)

.le__part__menu &
box-shadow: -15vw 0 0 var(--color-tertiary)

.le__actions
opacity: 1

&::after
background-color: var(--color-tertiary)

&--primary.le__clickable,
&--primary.le__clickable:hover
color: var(--color-primary)
Expand All @@ -127,11 +143,10 @@

&--selected,
&--selected.le__clickable:hover
background-color: var(--color-secondary)
color: var(--color-on-secondary)

.le__part__menu &
box-shadow: -15vw 0 0 var(--color-secondary)
&::after
background-color: var(--color-secondary)

.le__list__item__label
flex-grow: 1
Expand Down

0 comments on commit cf4f2ac

Please sign in to comment.