Skip to content

Commit ffc515f

Browse files
committed
fix(ffe-form): add 1px to border of input when :hover state is active
1 parent 606c28b commit ffc515f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/ffe-form/less/input-field.less

+8-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
color: var(--ffe-v-input-color);
99
border-radius: var(--ffe-g-border-radius);
1010
border: var(--ffe-g-border-width) solid var(--ffe-g-border-color);
11-
transition: border-color var(--ffe-transition-duration) var(--ffe-ease);
11+
transition:
12+
border-color var(--ffe-transition-duration) var(--ffe-ease),
13+
box-shadow var(--ffe-transition-duration) var(--ffe-ease);
1214
width: 100%;
1315
font-size: var(--ffe-fontsize-form-input);
1416

@@ -31,6 +33,9 @@
3133
border: var(--ffe-g-border-width-focus) solid var(--ffe-g-primary-color);
3234
outline: none;
3335
}
36+
&:hover {
37+
box-shadow: 0 0 0 1px var(--ffe-g-primary-color);
38+
}
3439

3540
&--inline {
3641
display: inline-block;
@@ -64,7 +69,8 @@
6469
}
6570

6671
&:focus {
67-
border-bottom: var(--ffe-g-border-width-focus) solid var(--ffe-g-primary-color);
72+
border-bottom: var(--ffe-g-border-width-focus) solid
73+
var(--ffe-g-primary-color);
6874
}
6975

7076
&[aria-invalid='true'] {

0 commit comments

Comments
 (0)