From ac71ef16c6db867dabe1f556db1fd35784fe2310 Mon Sep 17 00:00:00 2001 From: Maroxy Date: Sun, 24 Oct 2021 12:04:21 +0200 Subject: [PATCH] Remove highlight from entire checkbox item --- src/sass/settings.sass | 7 ------- src/ts/settings.ts | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/sass/settings.sass b/src/sass/settings.sass index fd655ab..d496d3c 100644 --- a/src/sass/settings.sass +++ b/src/sass/settings.sass @@ -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 diff --git a/src/ts/settings.ts b/src/ts/settings.ts index e2f1f5b..4780ccb 100644 --- a/src/ts/settings.ts +++ b/src/ts/settings.ts @@ -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'))