From 0723ff99a0ca9d367387823e608dfec8f1a83aa1 Mon Sep 17 00:00:00 2001 From: GCHQ-Developer-530 <111882034+GCHQ-Developer-530@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:26:01 +0000 Subject: [PATCH] fix(canary-web-components): update webkit autofill colours for date input dark mode Update webkit autofill colours for date input dark mode so that it appears correctly after a browser suggestion . #2915 --- .../src/components/ic-date-input/ic-date-input.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/canary-web-components/src/components/ic-date-input/ic-date-input.css b/packages/canary-web-components/src/components/ic-date-input/ic-date-input.css index 1d3e6b1ead..d3287fb7d3 100644 --- a/packages/canary-web-components/src/components/ic-date-input/ic-date-input.css +++ b/packages/canary-web-components/src/components/ic-date-input/ic-date-input.css @@ -43,7 +43,8 @@ input::-webkit-inner-spin-button { } input:-webkit-autofill { - box-shadow: 0 0 0 var(--ic-space-sm) var(--ic-architectural-white) inset; + box-shadow: 0 0 0 var(--ic-space-sm) var(--ic-color-background-primary) inset; + -webkit-text-fill-color: var(--ic-date-input-text-filled) !important; } input::placeholder {