diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-09-21 23:27:44 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-09-21 23:27:44 +0900 |
commit | 1f014295a54f1e16b8bd94da729fb0afd143f7fe (patch) | |
tree | e120a8f58403e6a24477ea5e1ab1b19a630fa43b /src/settings/components/ui/TextArea.tsx | |
parent | b88c0db89d439fe7c4385d5a6f087012557d4c47 (diff) |
Fix component test
Diffstat (limited to 'src/settings/components/ui/TextArea.tsx')
-rw-r--r-- | src/settings/components/ui/TextArea.tsx | 4 |
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> ); }; |