WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: WCAG On input with Auto radio button content update

for

From: Birkir R. Gunnarsson
Date: Dec 8, 2022 5:38AM


This fails WCAG 3.2.2.
Automatically moving focus when you change the setting of a control
(i.e. select a radio button), falls under the 3.2.2 definition of
"change of context".

Also one could argue this fails content order, (if the content that
gets updated comes, in content order, before the controls used to
update it).

If you placed the radio buttons before the content and did not move
focus to the content when you select them, this would be passable,
better yet if there is a "go to updated content" button after the
radio buttons.
Yes, aria-controls should've solved this situation (not the movement
of focus but being able to navigate from a control to the content
affected by that control) but, in the words of a famous accessibility
rock star "aria-controls is poop":
https://heydonworks.com/article/aria-controls-is-poop/


On 12/8/22, Graham Armfield < <EMAIL REMOVED> > wrote:
> One of the first things I would worry about would be keyboard
> accessibility.
>
> Keyboard users will typically move through the radio buttons with left,
> right or up, down keystrokes. Moving focus automatically to new/updated
> content after each keystroke would be a real problem.
>
> So I think that would be a fail.
>
> Regards
> Graham Armfield
>
> On Thu, 8 Dec 2022, 11:35 am allyssa jessicon, < <EMAIL REMOVED> >
> wrote:
>
>> "I am back with another question.
>>
>> This is related to WCAG 3.2.2 On Input. The scenario is as follows -
>>
>> If there are some radio buttons at the right side of a page, take it
>> as Sort low to high, A to Z, Sort by popularity etc. When user
>> activates the radio button the page content is getting updated based
>> on the radio button user activated and this is happens on the left
>> side of the page. Focus is setting to the Main content after each
>> radio button activation.
>>
>> Below are my questions -
>> Does this fail WCAG 3.2.2 On Input? If not, changing setting of the
>> radio button and the content which gets updated is an expected
>> behaviour? in that case wouldn't be the focus expected to set on the
>> triggered element itself (the radio buttons)
>>
>> Awaiting great responses."
>> >> >> >> >>
> > > > >


--
Work hard. Have fun. Make history.