1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-28 23:59:53 +02:00

Fix disabled checkbox toggle buttons (#31651)

* fix disabled checkbox toggle buttons

* add disabled checks-radios examples in documentation

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
Nikita Mikhaylov
2020-09-29 21:49:50 +03:00
committed by GitHub
parent 319954d369
commit 0cb880c7fb
3 changed files with 25 additions and 4 deletions

View File

@@ -82,7 +82,7 @@
&:disabled {
pointer-events: none;
filter: none;
opacity: .5;
opacity: $form-check-input-disabled-opacity;
}
// Use disabled attribute in addition of :disabled pseudo-class
@@ -90,7 +90,7 @@
&[disabled],
&:disabled {
~ .form-check-label {
opacity: .5;
opacity: $form-check-label-disabled-opacity;
}
}
}
@@ -139,4 +139,13 @@
position: absolute;
clip: rect(0, 0, 0, 0);
pointer-events: none;
&[disabled],
&:disabled {
+ .btn {
pointer-events: none;
filter: none;
opacity: $form-check-btn-check-disabled-opacity;
}
}
}