Skip to content

Commit

Permalink
fix(MultiInputMask): incorrect legend hover and focus within effect (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
joakbjerk authored Nov 7, 2023
1 parent b90acdb commit 1cd6be4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1321,13 +1321,13 @@ html[data-visual-test] .dnb-input__input {
color: var(--color-black);
}
.dnb-multi-input-mask .dnb-input__shell:focus-within {
--border-width: 0.125rem;
box-shadow: 0 0 0 var(--input-border-width--focus) var(--input-border-color--hover);
}
.dnb-multi-input-mask__legend--horizontal.dnb-form-label {
display: contents;
}
.dnb-multi-input-mask__legend:not([disabled]):hover ~ .dnb-multi-input-mask__legend .dnb-input__shell {
--border-width: 0.125rem;
.dnb-multi-input-mask__legend:not([disabled]):hover ~ .dnb-multi-input-mask .dnb-input__shell {
box-shadow: 0 0 0 var(--input-border-width--focus) var(--input-border-color--hover);
}"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
}

.dnb-input__shell:focus-within {
--border-width: 0.125rem;
box-shadow: 0 0 0 var(--input-border-width--focus)
var(--input-border-color--hover);
}
}

Expand All @@ -77,7 +78,8 @@
display: contents;
}

&:not([disabled]):hover ~ & .dnb-input__shell {
--border-width: 0.125rem;
&:not([disabled]):hover ~ .dnb-multi-input-mask .dnb-input__shell {
box-shadow: 0 0 0 var(--input-border-width--focus)
var(--input-border-color--hover);
}
}

0 comments on commit 1cd6be4

Please sign in to comment.