Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ffe-form): add 1px to border of input when it is in focus #2482

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading