Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
02f9f2bd
Commit
02f9f2bd
authored
10 years ago
by
Chris Rebert
Browse files
Options
Download
Plain Diff
Merge pull request #16092 from twbs/pointer-events-none-a
Only disable pointer-events on disabled <a> btns
parents
b6508f5d
c26ffd43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist/css/bootstrap.css
+4
-1
dist/css/bootstrap.css
less/buttons.less
+7
-1
less/buttons.less
with
11 additions
and
2 deletions
+11
-2
dist/css/bootstrap.css
+
4
-
1
View file @
02f9f2bd
...
...
@@ -3033,13 +3033,16 @@ select[multiple].form-group-lg .form-control {
.btn.disabled
,
.btn
[
disabled
],
fieldset
[
disabled
]
.btn
{
pointer-events
:
none
;
cursor
:
not-allowed
;
filter
:
alpha
(
opacity
=
65
);
-webkit-box-shadow
:
none
;
box-shadow
:
none
;
opacity
:
.65
;
}
a
.btn.disabled
,
fieldset
[
disabled
]
a
.btn
{
pointer-events
:
none
;
}
.btn-default
{
color
:
#333
;
background-color
:
#fff
;
...
...
This diff is collapsed.
Click to expand it.
less/buttons.less
+
7
-
1
View file @
02f9f2bd
...
...
@@ -47,10 +47,16 @@
&[disabled],
fieldset[disabled] & {
cursor: @cursor-disabled;
pointer-events: none; // Future-proof disabling of clicks
.opacity(.65);
.box-shadow(none);
}
a& {
&.disabled,
fieldset[disabled] & {
pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment