mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-20 20:46:58 +02:00
fix(v2): fix minor a11y issues (#4906)
This commit is contained in:
parent
d0bbdd0535
commit
869f4bf206
4 changed files with 11 additions and 26 deletions
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue