Skip to content

Commit 100bc5c

Browse files
author
Hector Arce De Las Heras
committed
Removing input background colour for autocomplete when it is disabled
1 parent 49e0cc8 commit 100bc5c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/input/input.styled.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,11 @@ export const InputWrapperStyled = styled.div<InputWrapperStyledProps>`
213213
background-color 600000s 0s,
214214
color 600000s 0s;
215215
}
216+
/* Removing input background colour for autocomplete when it is disabled */
217+
input:-webkit-autofill:disabled {
218+
-webkit-text-fill-color: ${props => props.styles?.input?.color};
219+
-webkit-box-shadow: 0 0 0px 1000px ${props => props.styles?.inputContainer?.background_color}
220+
inset;
221+
transition: background-color 5000s ease-in-out 0s;
222+
}
216223
`;

0 commit comments

Comments
 (0)