Skip to content

Commit

Permalink
Generalize disabled nav links CSS rules (#38774)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick H. Lauke <redux@splintered.co.uk>
  • Loading branch information
julien-deramond and patrickhlauke authored Jun 25, 2023
1 parent 8321397 commit 9369cd9
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions scss/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
}

// Disabled state lightens text
&.disabled {
&.disabled,
&:disabled {
color: var(--#{$prefix}nav-link-disabled-color);
pointer-events: none;
cursor: default;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9369cd9

Please sign in to comment.