From 1363045db2e92773e38fa69c9548e42647aa19db Mon Sep 17 00:00:00 2001 From: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com> Date: Thu, 5 Dec 2024 15:19:02 +0100 Subject: [PATCH] Merge pull request #22272 from overleaf/rd-tag-dropdown-fix [web] Tag dropdown menu should not be dismissed when hovering outside of it GitOrigin-RevId: 0f0f903e07d657752e3476b9abea643bae65eb9e --- .../components/sidebar/tags-list.tsx | 5 ++-- .../bootstrap-5/pages/project-list.scss | 23 ++++++++++++------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/services/web/frontend/js/features/project-list/components/sidebar/tags-list.tsx b/services/web/frontend/js/features/project-list/components/sidebar/tags-list.tsx index 9e47d81700..a6cc8e94c9 100644 --- a/services/web/frontend/js/features/project-list/components/sidebar/tags-list.tsx +++ b/services/web/frontend/js/features/project-list/components/sidebar/tags-list.tsx @@ -78,11 +78,10 @@ export default function TagsList() { - - + /> button { background-color: var(--neutral-90); font-weight: 700; - color: var(--white); + color: var(--content-primary-dark); .subdued { - color: var(--white); + color: var(--content-primary-dark); } } } @@ -309,9 +309,16 @@ } > li.tag { + &.active, + &:focus-within { + .tag-menu { + display: block; + } + } + &.active { .tag-menu > button { - color: var(--white); + color: var(--content-primary-dark); border-color: var(--white); &:hover { @@ -370,7 +377,7 @@ border: 1px solid var(--white); border-radius: var(--border-radius-base); background-color: transparent; - color: var(--white); + color: var(--content-primary-dark); display: flex; align-items: center; justify-content: center; @@ -405,7 +412,7 @@ font-weight: normal; &:hover { - color: var(--white); + color: var(--content-primary-dark); background-color: var(--bg-accent-01); } @@ -845,7 +852,7 @@ form.project-search { .color-picker-item-icon { margin: 3px; // it's centered, no matching spacing variable - color: var(--white); + color: var(--content-primary-dark); font-weight: bold; } @@ -856,7 +863,7 @@ form.project-search { .color-picker-item-icon { margin: 5px; // it's centered, no matching spacing variable - color: var(--white); + color: var(--content-primary-dark); } } }