Fix: filled inputs looked bizarre with autofill. (#644)

* Update input.styles.ts

* Update input.styles.ts
This commit is contained in:
Konnor Rogers
2022-01-11 09:35:28 -05:00
committed by GitHub
parent 6d766a8ce9
commit 9eb76fe470

View File

@@ -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 {