From 33071e3014d9b207c0264596a4b7c203982a7bc1 Mon Sep 17 00:00:00 2001 From: Terry Smith <52763493+tshfx@users.noreply.github.com> Date: Tue, 16 Jul 2019 22:28:01 -0300 Subject: [PATCH] Targets base inputs and only prevents outline if user uses a mouse (#6871) --- ui/app/components/ui/unit-input/index.scss | 1 - ui/app/css/itcss/components/account-dropdown.scss | 1 - ui/app/css/itcss/components/currency-display.scss | 1 - ui/app/css/itcss/generic/index.scss | 14 ++++++++------ 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ui/app/components/ui/unit-input/index.scss b/ui/app/components/ui/unit-input/index.scss index 58a10c9a1..338b3829f 100644 --- a/ui/app/components/ui/unit-input/index.scss +++ b/ui/app/components/ui/unit-input/index.scss @@ -38,7 +38,6 @@ font-size: 1rem; font-family: Roboto; border: none; - outline: 0 !important; max-width: 22ch; height: 16px; line-height: 18px; diff --git a/ui/app/css/itcss/components/account-dropdown.scss b/ui/app/css/itcss/components/account-dropdown.scss index 716404cc3..283b083da 100644 --- a/ui/app/css/itcss/components/account-dropdown.scss +++ b/ui/app/css/itcss/components/account-dropdown.scss @@ -84,7 +84,6 @@ &__account-primary-balance { color: $scorpion; border: none; - outline: 0 !important; } &__account-secondary-balance { diff --git a/ui/app/css/itcss/components/currency-display.scss b/ui/app/css/itcss/components/currency-display.scss index b1a74dce2..9ece7a672 100644 --- a/ui/app/css/itcss/components/currency-display.scss +++ b/ui/app/css/itcss/components/currency-display.scss @@ -19,7 +19,6 @@ font-size: 16px; line-height: 22px; border: none; - outline: 0 !important; max-width: 22ch; } diff --git a/ui/app/css/itcss/generic/index.scss b/ui/app/css/itcss/generic/index.scss index e0cc881cb..771008205 100644 --- a/ui/app/css/itcss/generic/index.scss +++ b/ui/app/css/itcss/generic/index.scss @@ -38,13 +38,15 @@ html { display: flex; } -input:focus, -textarea:focus { - outline: none; -} - .mouse-user-styles { - button:focus { + button:focus, + input:focus, + textarea:focus, + .unit-input__input, + .account-list-item__account-primary-balance, + .account-list-item__input, + .currency-display__input + { outline: none; } }