Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/scss/overwrite/_searchBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@
--aa-primary-color-rgb: var(--theme-color-std-text);
color: var(--theme-color-std-text);

// The search field is only one part of the form, so the focus ring belongs on
// the whole form. Otherwise it is drawn inside the form and overlaps its
// border, the submit icon and the clear button.
// `!important` is required because autocomplete.js resets the outline with an
// equally specific rule that is loaded later.
&:focus-within {
outline: 1px solid var(--theme-color-focus-bdr) !important;
outline-offset: var(--theme-focus-outline-offset);
}

.aa-InputWrapperSuffix,
.aa-InputWrapperPrefix {
background-color: var(--theme-input--background);
Expand All @@ -55,6 +65,13 @@
box-shadow: none;
}

// Wins over the global `input:focus` rule from `@siemens/ix`.
.aa-Input:focus,
.aa-Input:focus-visible {
outline: none !important;
box-shadow: none !important;
}

.aa-Input::placeholder {
color: var(--theme-color-soft-text);
}
Expand Down
Loading