Skip to content

Conversation

@JAWS-test2
Copy link
Contributor

@JAWS-test2 JAWS-test2 commented Jan 27, 2020

Add extra notes about single focusable elements, and initial state of focus on page opening etc.

Fixes #1001

Base automatically changed from master to main March 5, 2021 20:42
@patrickhlauke
Copy link
Member

Reformatted the additions into the note to account for the changed structure since this PR was first filed, to clear the merge conflict

@netlify
Copy link

netlify bot commented Jun 27, 2025

Deploy Preview for wcag2 ready!

Name Link
🔨 Latest commit 3b995c6
🔍 Latest deploy log https://app.netlify.com/projects/wcag2/deploys/68678521354e3000081b0013
😎 Deploy Preview https://deploy-preview-1022--wcag2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mbgower mbgower self-assigned this Jun 27, 2025
<div class="note">
<p>There may be situations where mouse/pointer users could also benefit from having a visible focus indicator, even though they did not set focus to an element using the keyboard. As a best practice, consider still providing an explicit focus indicator for these cases.</p>

<p>If there is only one keyboard focusable control on the screen, the success criterion would be met because the visual design presents only one keyboard focusable item. The success criterion does not require the focus to be visible intially, e.g. after opening a new page, when displaying a pop-up or after activating in-page links. However, it is recommended to show the focus in these cases as well.</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is the user supposed to work when the focus is not shown initially? How does a screen reader user perceive what happened to the focus?
If the focus is not visible initially, the user doesn't see where the focus is and might initiate an action that is not wanted. Also, having to interact to see the focus reduces efficiency considerable and distracts from the task all the time.

Copy link
Contributor

@mbgower mbgower Jul 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I agree with this addition (and btw, there's a typo in "initially"):

The success criterion does not require the focus to be visible intially

There is a difference between a page that does not have an element in focus initially, and one where there is a focusable element that is not properly shown as active. I don't think this nuance is clear, nor how to address in respect to Focus Visible. I'm also not sure that the number of focusable controls on the screen is relevant to that.

I do not think this PR sufficiently captures or addresses the initial question in #1001.

I think these are good questions to provide guidance on:

  • can an inoperable element on a page take focus?
  • if so, should it have a focus indicator?
  • if so, must it have a focus indicator to meet Focus Visible (and not doing so is a failure of 2.4.7)?
  • conversely, is there a time when inoperable elements receiving focus constitutes a failure of WCAG?

I think more detail is required, and I don't think this PR is sufficient as written. I'm okay to keep the scope of this change contained, but I think it should clearly answer at least one of the questions that seems to exist in #1001 discussion.

@mbgower mbgower removed their assignment Jul 21, 2025
Copy link
Member

@patrickhlauke patrickhlauke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe this fully answers/closes #1001

A more thorough answer may be #1643

@patrickhlauke patrickhlauke self-assigned this Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2.4.7 as it applies to static content and programmatic focus

4 participants