Skip to content

Commit

Permalink
Fix: filled inputs looked bizarre with autofill. (#644)
Browse files Browse the repository at this point in the history
* Update input.styles.ts

* Update input.styles.ts
  • Loading branch information
KonnorRogers committed Jan 11, 2022
1 parent 6d766a8 commit 9eb76fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/input/input.styles.ts
Expand Up @@ -115,6 +115,14 @@ export default css`
.input__control:-webkit-autofill:active {
box-shadow: 0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important;
-webkit-text-fill-color: var(--sl-color-primary-500);
caret-color: var(--sl-input-color);
}
.input--filled .input__control:-webkit-autofill,
.input--filled .input__control:-webkit-autofill:hover,
.input--filled .input__control:-webkit-autofill:focus,
.input--filled .input__control:-webkit-autofill:active {
box-shadow: 0 0 0 var(--sl-input-height-large) var(--sl-input-filled-background-color) inset !important;
}
.input__control::placeholder {
Expand Down

0 comments on commit 9eb76fe

Please sign in to comment.