You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Als Button automatisch in aria-labelledby zou verwijzen naar de span die sowieso al om de inhoud van de label property heen staat, dan kun je simpelweg het label hidden maken, terwijl het toegankelijk label blijft werken:
In React, om een icon button te maken, kun je het volgende doen:
Als
Button
automatisch inaria-labelledby
zou verwijzen naar despan
die sowieso al om de inhoud van delabel
property heen staat, dan kun je simpelweg het labelhidden
maken, terwijl het toegankelijk label blijft werken:De vraag is: zijn er nadelen aan deze aanpak?
Eén van de gevolgen is: zodra je
label
gebruikt, dan wordtaria-labelledby
gebruikt, en dan verdwijnen dechildren
uit de label.The text was updated successfully, but these errors were encountered: