Skip to content

Commit

Permalink
fix: remove input jump on hover (#1084)
Browse files Browse the repository at this point in the history
* fix: remove input jump on hover

* fix: add two borders

* fix: remove duplicated border
  • Loading branch information
Luan Peil authored Oct 2, 2023
1 parent a43b279 commit 99ce61c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/ocean-core/src/forms/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
background-color: $color-interface-light-pure;
border: $border-width-hairline solid $color-interface-light-deep;
border-radius: $border-radius-sm;
box-sizing: border-box;
display: flex;
height: 46px;
height: 48px;

input {
border: 0;
border: $border-width-hairline solid transparent;
border-radius: $border-radius-sm;
box-sizing: border-box;
color: $color-interface-dark-deep;
Expand Down Expand Up @@ -36,6 +37,10 @@
&:focus-within {
border-color: $color-brand-primary-down;
border-width: $border-width-thin;

input {
border-width: 0;
}
}

&--filled {
Expand Down

0 comments on commit 99ce61c

Please sign in to comment.