Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

focusable->focused to resolve #1381 #1387

Merged
merged 3 commits into from
Feb 4, 2021
Merged

focusable->focused to resolve #1381 #1387

merged 3 commits into from
Feb 4, 2021

Conversation

cookiecrook
Copy link
Contributor

@cookiecrook cookiecrook commented Jan 28, 2021

Copy link
Contributor

@carmacleod carmacleod left a comment

Choose a reason for hiding this comment

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

+1
This is (almost) perfect. :)

Approving on the assumption that the broken link to an as-yet-unwritten definition of "focusable/focused" is removed - see suggestion, below.

Thanks @cookiecrook !

index.html Outdated Show resolved Hide resolved
@carmacleod carmacleod linked an issue Jan 29, 2021 that may be closed by this pull request
@aleventhal
Copy link
Contributor

This is better than what there was but I don't think it goes far enough?

  • IIRC we had a plan for the UA to ignore the entire aria-hidden=true subtree when something inside of it gets focused. The benefit of this is that the user may need context around the focused object. This is in one of the many issues filed on aria-hidden somewhere :)
  • What about @sinabahram's concern regarding virtual buffers in JAWS and NVDA. They won't be informed of anything in the aria-hidden subtree, and therefore focus won't occur. Unless the user knows to try to turn off the virtual buffer and tab around, this new rule won't help.

@aleventhal
Copy link
Contributor

Alright, after talking to @jnurthen, he convinced me that this only changes the requirement to add focused nodes to the tree. It doesn't say you must not add focusable nodes to the tree (e.g. if there's a way to mark them hidden on that platform).

I'm ok +1'ing it if it's understood that we will have slightly different behavior depending on the platform:

  • On Mac, where there is no way to mark something hidden, we will add focused aria-hidden nodes to the tree, but keep other focusable nodes pruned out
  • On other platforms (or at least on Windows where there's a virtual buffer), we will add all focusable nodes to the tree and mark them as hidden (e.g. STATE_SYTEM_INVISIBLE). This will allows JAWS and NVDA to show the user something is there even when they're in a virtual buffer.

index.html Outdated Show resolved Hide resolved
@jnurthen jnurthen merged commit a61946a into main Feb 4, 2021
jnurthen pushed a commit that referenced this pull request Feb 10, 2021
* focusable->focused to resolve #1381
jnurthen pushed a commit that referenced this pull request Feb 10, 2021
* focusable->focused to resolve #1381
@jnurthen jnurthen deleted the issue-1381 branch March 3, 2021 16:57
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.

Follow-up: tree inclusion of focusable elements from #1100
6 participants