Skip to content

Commit 6aa5a9e

Browse files
committed
ENH Update focus states to be consistent
1 parent 1a3d4fd commit 6aa5a9e

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

client/dist/styles/bundle.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/components/TagField.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,16 @@
2626
}
2727

2828
.ss-tag-field__control--is-focused {
29-
border-color: $brand-primary;
29+
border-color: transparent;
3030
box-shadow: none;
31+
outline-offset: var(--focus-outline-offset);
32+
// We have to use !important here to override react-select styles, which also use !important
33+
outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color) !important;
34+
35+
// this is required to override default react-select style
36+
&:hover {
37+
border-color: transparent;
38+
}
3139
}
3240

3341
.ss-tag-field__option+.ss-tag-field__option {

0 commit comments

Comments
 (0)