a11y support

This commit is contained in:
David
2021-03-17 21:30:47 +01:00
parent 0646b17c9b
commit eafad585fc
6 changed files with 34 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
import { FC, ChangeEvent } from "react";
import { Select } from "@chakra-ui/react";
type Props = {
value: string,
onChange: (e: ChangeEvent<any>) => void,
@@ -15,6 +16,7 @@ const LangSelect: FC<Props> = ({ value, onChange, langs, ...props }) => (
variant="flushed"
px={2}
textAlign="center"
style={{ textAlignLast: "center" }}
{...props}
>
{langs.map(([code, name]) => (