Limit .close hover/focus to non-disabled controls (#26654)

This commit is contained in:
Patrick H. Lauke 2018-06-03 18:25:17 +01:00 committed by GitHub
parent a79b8aa16a
commit 4f1bb98587
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

View File

@ -7,14 +7,15 @@
text-shadow: $close-text-shadow;
opacity: .5;
@include hover-focus {
color: $close-color;
text-decoration: none;
opacity: .75;
}
// Opinionated: add "hand" cursor to non-disabled .close elements
&:not(:disabled):not(.disabled) {
@include hover-focus {
color: $close-color;
text-decoration: none;
opacity: .75;
}
// Opinionated: add "hand" cursor to non-disabled .close elements
cursor: pointer;
}
}