From 9369cd93fb177a967ae3d59485721491bb388d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Sun, 25 Jun 2023 23:43:50 +0200 Subject: [PATCH] Generalize disabled nav links CSS rules (#38774) Co-authored-by: Patrick H. Lauke --- scss/_nav.scss | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/scss/_nav.scss b/scss/_nav.scss index aedbdba540..ff073d3619 100644 --- a/scss/_nav.scss +++ b/scss/_nav.scss @@ -44,7 +44,8 @@ } // Disabled state lightens text - &.disabled { + &.disabled, + &:disabled { color: var(--#{$prefix}nav-link-disabled-color); pointer-events: none; cursor: default; @@ -79,13 +80,6 @@ isolation: isolate; border-color: var(--#{$prefix}nav-tabs-link-hover-border-color); } - - &.disabled, - &:disabled { - color: var(--#{$prefix}nav-link-disabled-color); - background-color: transparent; - border-color: transparent; - } } .nav-link.active, @@ -117,12 +111,6 @@ .nav-link { @include border-radius(var(--#{$prefix}nav-pills-border-radius)); - - &:disabled { - color: var(--#{$prefix}nav-link-disabled-color); - background-color: transparent; - border-color: transparent; - } } .nav-link.active,