Skip to content

Commit

Permalink
fix: category-filter hover focus
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Jun 24, 2024
1 parent 32a778c commit 14c8e1f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/core/scss/components/form/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
padding: 0.25rem 0.5rem;
background-color: var(--theme-input--background);
color: var(--theme-input--color);
-moz-appearance: textfield;
appearance: textfield;
text-overflow: ellipsis;
border: var(--theme-input--border-thickness, 1px) solid
var(--theme-input--border-color);
Expand Down
18 changes: 11 additions & 7 deletions packages/core/src/components/category-filter/category-filter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
position: relative;
height: auto;

@include host-focus-visible {
border-color: var(--theme-color-primary);
box-shadow: 0 0 $tiny-space 0 var(--theme-color-primary) !important;
}

.reset-button {
position: absolute;
top: $tiny-space;
Expand All @@ -41,8 +36,17 @@
}

.input-container {
&:not(.readonly):not(.disabled) {
@include element-input('false');
@include element-input(false);

&:not(.readonly):not(.disabled):hover {
border-color: var(--theme-input--border-color--hover) !important;
background-color: var(--theme-input--background--hover);
}

&:not(.readonly):not(.disabled).focus {
outline: 1px solid var(--theme-color-focus-bdr);
outline-offset: var(--theme-input--focus--outline-offset);
border-color: var(--theme-input--border-color--focus) !important;
}

&.disabled {
Expand Down
9 changes: 2 additions & 7 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,12 @@
],
"outputLogs": "new-only"
},
"pkg": {
"dependsOn": [
"^build"
],
"cache": true
},
"start": {
"dependsOn": [
"^build"
],
"cache": true
"cache": true,
"persistent": true
},
"lint": {
"cache": false
Expand Down

0 comments on commit 14c8e1f

Please sign in to comment.