aboutsummaryrefslogtreecommitdiff
path: root/src/settings/components/ui/TextArea.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/components/ui/TextArea.tsx')
-rw-r--r--src/settings/components/ui/TextArea.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/settings/components/ui/TextArea.tsx b/src/settings/components/ui/TextArea.tsx
index 58b7bd3..9dcd5be 100644
--- a/src/settings/components/ui/TextArea.tsx
+++ b/src/settings/components/ui/TextArea.tsx
@@ -46,7 +46,9 @@ const TextArea: React.FC<Props> = (props) => {
<Container>
<Label htmlFor={props.id}>{props.label}</Label>
<ErrorableTextArea hasError={hasError} onChange={onChange} {...pp} />
- {hasError ? <ErrorMessage>{props.error}</ErrorMessage> : null}
+ {hasError ? (
+ <ErrorMessage role="alert">{props.error}</ErrorMessage>
+ ) : null}
</Container>
);
};