From cd45607ce2490294ecce19f5d04f2e1c0a317d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 2 Aug 2021 00:06:14 +0200 Subject: [PATCH] Fix focus styles in admin form controls We lost focus styles on certain controls in commit 4dad04ae3, since we were applying a border with a rule which had more precedence than the rule of border on focus. --- app/assets/stylesheets/admin.scss | 4 ++++ app/assets/stylesheets/layout/locale_switcher.scss | 1 + 2 files changed, 5 insertions(+) diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 41089dbe1..8e360e18c 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -274,6 +274,10 @@ $table-header: #ecf1f6; border: $admin-border; border-radius: rem-calc(6); box-shadow: none; + + &:focus { + border: $input-border-focus; + } } } diff --git a/app/assets/stylesheets/layout/locale_switcher.scss b/app/assets/stylesheets/layout/locale_switcher.scss index aedd5b909..8fffc6868 100644 --- a/app/assets/stylesheets/layout/locale_switcher.scss +++ b/app/assets/stylesheets/layout/locale_switcher.scss @@ -39,6 +39,7 @@ width: auto; &:focus { + border: 0; outline: $outline-focus; }