From 666a296a620266938c59fb6af9d8a8af99ac6c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20V=C3=ADtek?= Date: Tue, 27 May 2025 23:54:01 +0200 Subject: [PATCH] List group item hoverable only with .list-group-hoverable class (#2397) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Paweł Kuna <1282324+codecalm@users.noreply.github.com> --- .changeset/smart-apples-glow.md | 5 +++++ core/scss/ui/_lists.scss | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 .changeset/smart-apples-glow.md diff --git a/.changeset/smart-apples-glow.md b/.changeset/smart-apples-glow.md new file mode 100644 index 000000000..9e5c23afd --- /dev/null +++ b/.changeset/smart-apples-glow.md @@ -0,0 +1,5 @@ +--- +"@tabler/core": patch +--- + +Fix list group item hoverable only with `.list-group-hoverable` class diff --git a/core/scss/ui/_lists.scss b/core/scss/ui/_lists.scss index a1ef6f715..9a9bbfb78 100644 --- a/core/scss/ui/_lists.scss +++ b/core/scss/ui/_lists.scss @@ -30,14 +30,6 @@ border-left-width: $border-width-wide; } -.list-group-item { - &:active, - &:focus, - &:hover { - background-color: $dropdown-link-hover-bg; - } -} - .list-group-item { &.disabled, &:disabled { @@ -58,6 +50,14 @@ } .list-group-hoverable { + .list-group-item { + &:active, + &:focus, + &:hover { + background-color: $dropdown-link-hover-bg; + } + } + .list-group-item-actions { opacity: 0; @include transition(opacity $transition-time);