I verified that the hamburger button in the composer isn’t labeled. Specifically, this is the toggle-toolbar button in the composer-toggles component. This button is only rendered in the mobile view.
What would be a reasonable label for this button? Maybe “Formatting”, since many of the toolbar options are formatting related? Not all of them are, though. Maybe the more generic “Tools” would be better.
It occurred to me that, to enable accessibility fixes to reach Discourse’s worldwide user base without imposing too much on translators, we should use existing strings for unlabeled controls when it makes sense. So, for the hamburger button, would it make sense to use “show more” as the title? We could use “options”, and I think that would be a better fit, except that there’s already an “options” button in the toolbar itself. I think that would be confusing.
Ho aggiunto etichette ai pulsanti di caricamento e anteprima, nonché all’interruttore della barra degli strumenti.
@Matt_Campbell Hai ragione sui vantaggi di utilizzare il testo esistente quando possibile, ma ho finito per aggiungere due nuove stringhe in modo che l’etichetta possa dire “[Mostra/nascondi] barra degli strumenti del compositore”. Avevo preso in considerazione l’uso di “opzioni”, ma non mi è sembrato abbastanza descrittivo, soprattutto considerando che il pulsante è un interruttore.
@owlish@Matt_Campbell@awesomerobot , qual è la situazione in questi giorni?
La richiesta originale riguardava la correzione del titolo “Or press Ctrl+Enter” sul pulsante di risposta. Forse possiamo semplicemente aggiungere aria-label="reply" a questo pulsante?
VoiceOver su iOS legge l’etichetta del pulsante “rispondi” e poi il titolo, e questo è anche il caso di NVDA su desktop, quindi penso che tutto sia stato coperto qui, ma posso dare un’occhiata più da vicino se manca ancora qualcosa.
Un piccolo miglioramento potrebbe essere quello di rimuovere il titolo su mobile perché le scorciatoie da tastiera generalmente non sono rilevanti lì.