Skip to content

Commit

Permalink
Merge pull request #2482 from SpareBank1/improve-input
Browse files Browse the repository at this point in the history
fix(ffe-form): add 1px to border of input when it is in focus
  • Loading branch information
hagenek authored Jan 27, 2025
2 parents b4a3dcb + ffc515f commit edcd3b3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/ffe-form/less/input-field.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
color: var(--ffe-v-input-color);
border-radius: var(--ffe-g-border-radius);
border: var(--ffe-g-border-width) solid var(--ffe-g-border-color);
transition: border-color var(--ffe-transition-duration) var(--ffe-ease);
transition:
border-color var(--ffe-transition-duration) var(--ffe-ease),
box-shadow var(--ffe-transition-duration) var(--ffe-ease);
width: 100%;
font-size: var(--ffe-fontsize-form-input);

Expand All @@ -31,6 +33,9 @@
border: var(--ffe-g-border-width-focus) solid var(--ffe-g-primary-color);
outline: none;
}
&:hover {
box-shadow: 0 0 0 1px var(--ffe-g-primary-color);
}

&--inline {
display: inline-block;
Expand Down Expand Up @@ -64,7 +69,8 @@
}

&:focus {
border-bottom: var(--ffe-g-border-width-focus) solid var(--ffe-g-primary-color);
border-bottom: var(--ffe-g-border-width-focus) solid
var(--ffe-g-primary-color);
}

&[aria-invalid='true'] {
Expand Down

0 comments on commit edcd3b3

Please sign in to comment.