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); }