jeudi 18 mars 2021

WCAG 3.2.2 On Input and toggle switch on a website

I've read WCAG and other sources that deal with interpretation and am still a bit confused if I will have to breach 3.2.2 or not with following. Maybe you have some extra thoughts:

  1. a toggle switch on a page will be used to basically reset a table with selected rows
  2. toggle is default "on" and shows "best combination"
  3. if user selects different rows the toggle switch changes to "off" state and user is informed that "changes were made"

So my dilemma is - is this change of context or not?

If a toggle switch is toggled again, then default rows are selected and user is again informed.

Personally I think this is dangerous and I've suggested a confirmation dialog or maybe a submit button so that user confirms the change before it happens.

But when reading Understanding SC 3.2.2 (https://www.w3.org/TR/UNDERSTANDING-WCAG20/consistent-behavior-unpredictable-change.html) I may be mistaken and it is totally fine if toggle switch changes row selection at once and user is informed about it (visually we change the text besides the toggle and screen-reader users will be notified by status message that is visually hidden (role="status")).

What do you think - is it ok if toggle "resets" the not-default row selection or should we have a "confirmation" (confirm dialog / submit button)?

Concept gif:

Animated gif showing toggle button changing dataset




Aucun commentaire:

Enregistrer un commentaire