fix(v2): fix minor a11y issues (#4906)

This commit is contained in:
Alexey Pyltsyn 2021-06-09 14:33:08 +03:00 committed by GitHub
parent d0bbdd0535
commit 869f4bf206
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 26 deletions

View file

@ -18,8 +18,7 @@ function TagIcon({label, description, icon}) {
<span
className={styles.tagIcon}
// TODO add a proper tooltip
title={`${label}: ${description}`}
aria-label={`${label}: ${description}`}>
title={`${label}: ${description}`}>
{icon}
</span>
);

View file

@ -13,10 +13,10 @@ function ShowcaseSelect({tag, label, onChange, value, children}) {
const id = `showcase_select_id_${tag};`;
return (
<div className={styles.selectContainer}>
<label htmlFor={id}>{label}</label>
<select id={id} name={tag} onChange={onChange} value={value}>
{children}
</select>
<label htmlFor={id}>{label}</label>
</div>
);
}