Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove duplicate code for indeterminate #30471

Merged
merged 2 commits into from
Mar 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 0 additions & 10 deletions site/assets/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@
return [].slice.call(list)
}

(function () {
var checkbox = document.getElementById('flexCheckIndeterminate')

if (!checkbox) {
return
}

checkbox.indeterminate = true
})()

makeArray(document.querySelectorAll('.js-sidenav-group'))
.forEach(function (sidenavGroup) {
var groupHasLinks = Boolean(sidenavGroup.querySelector('li'))
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/4.3/forms/checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Our checks use custom Bootstrap icons to indicate checked or indeterminate state

Checkboxes can utilize the `:indeterminate` pseudo class when manually set via JavaScript (there is no available HTML attribute for specifying it).

{{< example >}}
{{< example class="bd-example-indeterminate">}}
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="flexCheckIndeterminate">
<label class="form-check-label" for="flexCheckIndeterminate">
Expand Down