Remove highlight from entire checkbox item

This commit is contained in:
Maroxy 2021-10-24 12:04:21 +02:00
parent eed9d65a4b
commit ac71ef16c6
2 changed files with 1 additions and 8 deletions

View file

@ -126,11 +126,6 @@ body
border-radius: 12px
cursor: pointer
&:hover
background-color: #eff2ff
.checkbox-mark
display: flex
@ -151,8 +146,6 @@ body
width: 12px
.checkbox-active
background-color: #eff2ff
.checkbox-mark
background-color: #657ef8

View file

@ -31,7 +31,7 @@ $(() => {
$(`.menu-item[anchor=${anchor}]`).addClass('menu-item-active');
});
$('.checkbox').on('click', (e) => {
$('.checkbox-mark').on('click', (e) => {
let item = $(e.target);
while (!item.hasClass('checkbox'))