diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/settings/components/form/BlacklistForm.tsx | 4 | ||||
-rw-r--r-- | src/settings/components/ui/TextArea.tsx | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/settings/components/form/BlacklistForm.tsx b/src/settings/components/form/BlacklistForm.tsx index 4d794f4..d301f2c 100644 --- a/src/settings/components/form/BlacklistForm.tsx +++ b/src/settings/components/form/BlacklistForm.tsx @@ -40,13 +40,13 @@ class BlacklistForm extends React.Component<Props> { render() { return ( <> - <Grid> + <Grid role="list"> {this.props.value.items.map((item, index) => { if (item.partial) { return null; } return ( - <GridRow key={index}> + <GridRow role="listitem" key={index}> <GridCell> <Input data-index={index} 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> ); }; |