Skip to content

Commit

Permalink
Generalize disabled nav links CSS rules (twbs#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
2 people authored and romankupchak93 committed Jan 5, 2024
1 parent 394ab33 commit 4bbcc41
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 4bbcc41

Please sign in to comment.