1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 17:11:48 +02:00

docs(sidenav): get rid of custom JS for active state

This commit is contained in:
Gaël Poupard
2020-02-18 14:05:05 +01:00
committed by XhmikosR
parent 79dc21b22b
commit 72230091b6
3 changed files with 6 additions and 23 deletions

View File

@@ -40,13 +40,11 @@
content: escape-svg($sidebar-collapse-icon);
}
&.active {
.bd-sidenav-group-link::before {
transform: rotate(90deg);
}
[aria-expanded="true"] {
color: rgba($black, .85);
> .bd-sidenav-group-link {
color: rgba($black, .85);
&::before {
transform: rotate(90deg);
}
}
}
@@ -71,9 +69,7 @@
}
}
> .active > a,
> .active:hover > a,
> .active:focus > a {
[aria-current="page"] {
font-weight: 600;
color: rgba($black, .85);
}