WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Definition of focus

for

Number of posts in this thread: 3 (In chronological order)

From: Zjef Herwig | HStalks
Date: Thu, Mar 06 2025 5:15AM
Subject: Definition of focus
No previous message | Next message →

Hello all,

In testing 2.1.4, we ended up in a debate about focus.

When you click on our video player, certain keyboard shortcuts are active.
If you click out of the video player, the shortcuts stop working. So Far so good.

However, we have a carousel with buttons to move between the pages of the carousel.
Which you click the buttons of the carousel, the keyboard shortcuts stay active.
When you press tab, you will tab around the video player elements.
This suggests that the focus does not jump to the carousel.

If you tab through the page to the same buttons, focus works normally, and the buttons of the video player do not work.

Now, this is not a question about 2.1.4.
The question is about the definition of ‘focus’.

Should the fact that the buttons on the carousel do not move the ‘tab-focus’ be considered a focus error?
Or is ‘focus’ only relevant when you are navigating with keyboard or another assistive technology?


Best regards,

Zjef Herwig
We are your partners in this journey, always ready to assist. At any time, our expertise and assistance are at your disposal.
Head of Technological Operations
Henry Stewart Talks
http://www.hstalks.com<;http://hstalks.com/main/index_category.php?c=250>;

From: Steve Green
Date: Thu, Mar 06 2025 11:42PM
Subject: Re: Definition of focus
← Previous message | Next message →

If you click on a focusable component outside the video player, it should receive focus. Have you verified that the focus does move to the carousel button when you click it? If so, it sounds like the script that controls the shortcuts for the video player isn't detecting this.

I can't think of any reason the carousel buttons would not receive focus when you click them. If you can tab to them, they should receive focus when clicked unless you are doing something very strange. Can you share the URL?

The fact that the carousel buttons don't receive focus when clicked is not a non-conformance of SC 2.1.4, but this unusual behaviour suggests that there may be other non-conformances.

Steve Green
Managing Director
Test Partners Ltd

From: Zjef Herwig | HStalks
Date: Sat, Mar 08 2025 9:50AM
Subject: Re: Definition of focus
← Previous message | No next message

Hey Steve,

Thanks for your answer.

If you navigate to the buttons using the keyboard they do receive focus and they work as I would expect them to.

The behavior of the buttons is controlled by JavaScript and I suspect that is the reason why they do not receive focus.
I'll have to spend some time updating the JavaScript this week or next.



Best regards,
 
Zjef Herwig
We are your partners in this journey, always ready to assist. At any time, our expertise and assistance are at your disposal.
Head of Technological Operations
Henry Stewart Talks
http://www.hstalks.com