From 751f715e77a73fa704298dd1dbad0035eb7a75e8 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 19 Apr 2017 02:28:16 +0100 Subject: [PATCH] fix focus highlight on bright theme --- .../css/matrix-react-sdk/views/elements/_AccessibleButton.scss | 2 +- src/skins/vector/css/themes/_base.scss | 2 ++ src/skins/vector/css/themes/_dark.scss | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/skins/vector/css/matrix-react-sdk/views/elements/_AccessibleButton.scss b/src/skins/vector/css/matrix-react-sdk/views/elements/_AccessibleButton.scss index b82ebf012d..41dd976960 100644 --- a/src/skins/vector/css/matrix-react-sdk/views/elements/_AccessibleButton.scss +++ b/src/skins/vector/css/matrix-react-sdk/views/elements/_AccessibleButton.scss @@ -16,6 +16,6 @@ limitations under the License. .mx_AccessibleButton:focus { outline: 0; - filter: brightness(200%); + filter: brightness($focus-brightness); } diff --git a/src/skins/vector/css/themes/_base.scss b/src/skins/vector/css/themes/_base.scss index e105e7b4d5..b601191348 100644 --- a/src/skins/vector/css/themes/_base.scss +++ b/src/skins/vector/css/themes/_base.scss @@ -15,6 +15,8 @@ $accent-color: #76CFA6; $selection-fg-color: $primary-bg-color; +$focus-brightness: 125%; + // red warning colour $warning-color: #ff0064; diff --git a/src/skins/vector/css/themes/_dark.scss b/src/skins/vector/css/themes/_dark.scss index 6d435fab8a..72c21b7572 100644 --- a/src/skins/vector/css/themes/_dark.scss +++ b/src/skins/vector/css/themes/_dark.scss @@ -15,6 +15,8 @@ $accent-color: #76CFA6; $selection-fg-color: $primary-fg-color; +$focus-brightness: 200%; + // red warning colour $warning-color: #ff0064;