Skip to content

Commit

Permalink
Fix active state dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens authored and olsza committed Oct 3, 2020
1 parent dcbf707 commit 83fc0f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions site/assets/scss/_subnav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05);
}

.dropdown-item.active {
.dropdown-item.current {
font-weight: 600;
color: $gray-900;
background-color: transparent;
background-image: escape-svg($dropdown-active-icon);
background-repeat: no-repeat;
background-position: .4rem .6rem;
Expand Down
2 changes: 1 addition & 1 deletion site/layouts/partials/docs-versions.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Bootstrap v{{ .Site.Params.docs_version }}
</button>
<ul class="dropdown-menu dropdown-menu-md-right" aria-labelledby="bd-versions">
<li><a class="dropdown-item active" aria-current="true" href="/docs/{{ .Site.Params.docs_version }}/">Latest (5.0.x)</a></li>
<li><a class="dropdown-item current" aria-current="true" href="/docs/{{ .Site.Params.docs_version }}/">Latest (5.0.x)</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="https://getbootstrap.com/docs/4.4/">v4.4.1</a></li>
<li><a class="dropdown-item" href="https://getbootstrap.com/docs/3.4/">v3.4.1</a></li>
Expand Down

0 comments on commit 83fc0f2

Please sign in to comment.