@@Gunnar Bittersmann
Was gehört da ins
alt
-Attribut? „Text anzeigen“? Macht wenig Sinn. Die jeweiligen anzuzeigenden Texte („Schneller Versand – Täglicher Versand“ usw.) schon eher.
Oder auch gar nichts …
Dann ist der Button, woraufhin derselbe Text nochmal vorgelesen wird, für Screenreader-Nutzer auch recht sinnfrei.
… Der für sie sinnfreie Button wird vor Screenreadern mit aria-hidden="true"
versteckt.
Der Text wird visuell versteckt. Beim Click auf den Button wird die entsprechende Klasse weggenommen und damit der Text angezeigt. Sollte doch so gehen, oder?
😷 LLAP
--
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon
“When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down ‘happy.’ They told me I didn’t understand the assignment, and I told them they didn’t understand life.” —John Lennon