From 5b9886ad8833ec069ec2eb8fb96b83d6020691e0 Mon Sep 17 00:00:00 2001 From: Kyrylo Hudym-Levkovych Date: Mon, 9 Oct 2023 08:26:26 +0300 Subject: [PATCH] fix: update styles for searchfield btn --- src/SearchField/SearchFieldSubmitButton.jsx | 2 +- .../__snapshots__/SearchField.test.jsx.snap | 2 +- src/SearchField/index.scss | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/SearchField/SearchFieldSubmitButton.jsx b/src/SearchField/SearchFieldSubmitButton.jsx index eff97e9004..ded1dfaacb 100644 --- a/src/SearchField/SearchFieldSubmitButton.jsx +++ b/src/SearchField/SearchFieldSubmitButton.jsx @@ -42,7 +42,7 @@ function SearchFieldSubmitButton(props) { ) : ( "`; +exports[` with basic usage should match the snapshot 1`] = `"
"`; diff --git a/src/SearchField/index.scss b/src/SearchField/index.scss index b381fc5275..2ee625109e 100644 --- a/src/SearchField/index.scss +++ b/src/SearchField/index.scss @@ -11,17 +11,18 @@ background-color: $search-form-background-color; } - .btn:focus-visible { + .pgn__searchfield__action-btn:focus { outline: none; position: relative; - transition: $input-transition; - &::after { + &::before { content: ""; - border: $search-border-focus-width double $search-border-focus-color; + border: $search-border-focus-width solid $search-border-focus-color; position: absolute; - width: 100%; - height: 100%; + top: -5px; + right: -5px; + bottom: -5px; + left: -5px; } } @@ -138,6 +139,5 @@ } .pgn__searchfield__button.btn[type="submit"] { - border-radius: 0; margin-inline-start: $search-button-margin; }