From abd70709c94e76e9e65dd06fae498c4694f3044b Mon Sep 17 00:00:00 2001 From: Barsnes Date: Fri, 19 Apr 2024 08:33:36 +0200 Subject: [PATCH] style(Textarea): Add missing error border --- packages/react/src/components/form/Textarea/Textarea.module.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/form/Textarea/Textarea.module.css b/packages/react/src/components/form/Textarea/Textarea.module.css index 123577d0d9..a738e22f8e 100644 --- a/packages/react/src/components/form/Textarea/Textarea.module.css +++ b/packages/react/src/components/form/Textarea/Textarea.module.css @@ -66,7 +66,7 @@ border-color: var(--fds-semantic-border-neutral-default); } - .error > .textarea:not(:focus-visible) { + .textarea[aria-invalid='true']:not(:focus-visible) { border-color: var(--fds-semantic-border-danger-default); box-shadow: inset 0 0 0 1px var(--fds-semantic-border-danger-default); }