Skip to content

Commit

Permalink
Use wrapping span instead of div (#27695)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens authored and XhmikosR committed Nov 20, 2018
1 parent 749c823 commit c628921
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion site/docs/4.1/assets/js/src/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
.tooltip('_fixTitle')
})

$('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5').wrapInner('<div></div>')
$('.bd-content').children('h2, h3, h4, h5').wrapInner('<span class="bd-content-title"></span>')

bsCustomFileInput.init()
})
Expand Down
11 changes: 5 additions & 6 deletions site/docs/4.1/assets/scss/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,10 @@
> h4[id] {
pointer-events: none;

> div,
> a {
pointer-events: auto;
}

&::before {
display: block;
height: 6rem;
margin-top: -6rem;
visibility: hidden;
content: "";
}
}
Expand Down Expand Up @@ -67,6 +61,11 @@
}
}

.bd-content-title {
display: block;
pointer-events: auto;
}

//
// Docs sections
//
Expand Down

0 comments on commit c628921

Please sign in to comment.