From 4f1bb98587411d6db16783ea116ff6d5d8f8fa49 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Sun, 3 Jun 2018 18:25:17 +0100 Subject: [PATCH] Limit .close hover/focus to non-disabled controls (#26654) --- scss/_close.scss | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scss/_close.scss b/scss/_close.scss index 871cb08fd8..a0dd1e2af1 100644 --- a/scss/_close.scss +++ b/scss/_close.scss @@ -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; } }