mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-24 03:40:10 +00:00
Merge pull request #16092 from twbs/pointer-events-none-a
Only disable pointer-events on disabled <a> btns
This commit is contained in:
commit
02f9f2bd26
@ -3033,13 +3033,16 @@ select[multiple].form-group-lg .form-control {
|
|||||||
.btn.disabled,
|
.btn.disabled,
|
||||||
.btn[disabled],
|
.btn[disabled],
|
||||||
fieldset[disabled] .btn {
|
fieldset[disabled] .btn {
|
||||||
pointer-events: none;
|
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
filter: alpha(opacity=65);
|
filter: alpha(opacity=65);
|
||||||
-webkit-box-shadow: none;
|
-webkit-box-shadow: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
opacity: .65;
|
opacity: .65;
|
||||||
}
|
}
|
||||||
|
a.btn.disabled,
|
||||||
|
fieldset[disabled] a.btn {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
.btn-default {
|
.btn-default {
|
||||||
color: #333;
|
color: #333;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
@ -47,10 +47,16 @@
|
|||||||
&[disabled],
|
&[disabled],
|
||||||
fieldset[disabled] & {
|
fieldset[disabled] & {
|
||||||
cursor: @cursor-disabled;
|
cursor: @cursor-disabled;
|
||||||
pointer-events: none; // Future-proof disabling of clicks
|
|
||||||
.opacity(.65);
|
.opacity(.65);
|
||||||
.box-shadow(none);
|
.box-shadow(none);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a& {
|
||||||
|
&.disabled,
|
||||||
|
fieldset[disabled] & {
|
||||||
|
pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user