Kaynağa Gözat

List group item hoverable only with .list-group-hoverable class (#2397)

Co-authored-by: Paweł Kuna <[email protected]>
Daniel Vítek 3 ay önce
ebeveyn
işleme
666a296a62
2 değiştirilmiş dosya ile 13 ekleme ve 8 silme
  1. 5 0
      .changeset/smart-apples-glow.md
  2. 8 8
      core/scss/ui/_lists.scss

+ 5 - 0
.changeset/smart-apples-glow.md

@@ -0,0 +1,5 @@
+---
+"@tabler/core": patch
+---
+
+Fix list group item hoverable only with `.list-group-hoverable` class

+ 8 - 8
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);