diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-08-16 22:21:50 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-09-21 12:48:18 +0900 |
commit | e4a9c831381a9c90ca0d44844d103b9c83a56c8d (patch) | |
tree | c03f40340e9afa43f841772a799549bb4642f3e9 /src | |
parent | d53f010cc92f1fcb9580ca770766790e783e28a5 (diff) |
Improve a11y on Message component
Diffstat (limited to 'src')
-rw-r--r-- | src/console/components/console/Message.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console/components/console/Message.tsx b/src/console/components/console/Message.tsx index e039020..73498fd 100644 --- a/src/console/components/console/Message.tsx +++ b/src/console/components/console/Message.tsx @@ -23,9 +23,9 @@ interface Props { const Message: React.FC<Props> = ({ mode, children }) => { switch (mode) { case "error": - return <Error>{children}</Error>; + return <Error role="alert">{children}</Error>; case "info": - return <Info>{children}</Info>; + return <Info role="status">{children}</Info>; } return null; }; |