From beb3c299535ed83d8a1d0e7270952a29bdf21628 Mon Sep 17 00:00:00 2001 From: patrickhlauke Date: Sat, 2 Jun 2018 14:54:46 +0100 Subject: [PATCH] Limit .close hover/focus to non-disabled controls --- scss/_close.scss | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/scss/_close.scss b/scss/_close.scss index 871cb08fd8e5..a0dd1e2af171 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; } }