Skip to content

6cfa84: Change aria-hidden rule to focus on tabbable rather than focusable#1820

Merged
WilcoFiers merged 14 commits intoact-rules:developfrom
tombrunet:hidden-not-tabbable
Jun 9, 2022
Merged

6cfa84: Change aria-hidden rule to focus on tabbable rather than focusable#1820
WilcoFiers merged 14 commits intoact-rules:developfrom
tombrunet:hidden-not-tabbable

Conversation

@tombrunet
Copy link
Copy Markdown
Collaborator

@tombrunet tombrunet commented Mar 24, 2022

Per Task Force discussions:
focusable, by spec, includes elements with tabindex="-1" because they can be programmatically focused, but also browsers allow them to be clickable and focused. The more significant issue is items that are tabbable within content that is aria-hidden.

Proposing a change in language that would focus on items that are tabbable.

Fixes #1807

Need for Call for Review:
This will require a 2 weeks Call for Review << new rule, or substantial changes affecting a large number of test cases, if in doubt, use this. >>


Pull Request Etiquette

When creating PR:

  • Make sure you're requesting to pull a branch (right side) to the develop branch (left side).
  • Make sure you do not remove the "How to Review and Approve" section in your pull request description

After creating PR:

  • Add yourself (and co-authors) as "Assignees" for PR.
  • Add label to indicate if it's a Rule, Definition or Chore.
  • Link the PR to any issue it solves. This will be done automatically by referencing the issue at the top of this comment in the indicated place.
  • Optionally request feedback from anyone in particular by assigning them as "Reviewers".

When merging a PR:

  • Close any issue that the PR resolves. This will happen automatically upon merging if the PR was correctly linked to the issue, e.g. by referencing the issue at the top of this comment.

How to Review And Approve

  • Go to the “Files changed” tab
  • Here you will have the option to leave comments on different lines.
  • Once the review is completed, find the “Review changes” button in the top right, select “Approve” (if you are really confident in the rule) or "Request changes" and click “Submit review”.
  • Make sure to also review the proposed Call for Review period. In case of disagreement, the longer period wins.

@tombrunet
Copy link
Copy Markdown
Collaborator Author

Update to Pass 4 is handled in #1819

Jym77
Jym77 previously requested changes Mar 31, 2022
@Jym77 Jym77 requested a review from carlosapaduarte March 31, 2022 10:40
@Jym77
Copy link
Copy Markdown
Collaborator

Jym77 commented Mar 31, 2022

Also, I think this resolves #1807.
(you should add resolves #1807 to the initial description, so that the issue is automatically closed when the PR is merged: Linking a pull request to an issue).

Copy link
Copy Markdown
Collaborator

@tbostic32 tbostic32 left a comment

Choose a reason for hiding this comment

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

We need a little wording change in the assumptions section to clean things up, otherwise I think this PR looks good. The issue @Jym77 brought up is something we should look at and probably deal with in a separate issue.

@WilcoFiers WilcoFiers dismissed stale reviews from tbostic32 and Jym77 April 21, 2022 13:15

Please look again

Copy link
Copy Markdown
Collaborator

@kengdoj kengdoj left a comment

Choose a reason for hiding this comment

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

Just a question for line 51.

Copy link
Copy Markdown
Collaborator

@HelenBurge HelenBurge left a comment

Choose a reason for hiding this comment

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

as per my comment - add a definition to [sequential focus navigation][]

@tombrunet tombrunet requested review from HelenBurge and kengdoj May 27, 2022 13:38
Copy link
Copy Markdown
Collaborator

@kengdoj kengdoj left a comment

Choose a reason for hiding this comment

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

I also agree with @tbostic32 suggested change (on Apr 6).

tombrunet and others added 2 commits June 1, 2022 21:54
Co-authored-by: Trevor R. Bostic <32486143+tbostic32@users.noreply.github.com>
@tombrunet tombrunet dismissed HelenBurge’s stale review June 2, 2022 03:00

Fix previously applied

## Assumptions

Interacting with the page does not result in changing the `aria-hidden` [attribute value][] of target elements. An example of such a situation would be when closing a modal dialog makes previously hidden and not [focusable][] elements become [focusable][].
Interacting with the page does not result in changing the `aria-hidden` [attribute value][] of target elements. An example of such a situation would be when closing a modal dialog makes previously hidden and elements not [focusable][] and part of the [sequential focus navigation][] become [focusable][] and part of the [sequential focus navigation][].
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Interacting with the page does not result in changing the `aria-hidden` [attribute value][] of target elements. An example of such a situation would be when closing a modal dialog makes previously hidden and elements not [focusable][] and part of the [sequential focus navigation][] become [focusable][] and part of the [sequential focus navigation][].
Interacting with the page does not result in changing the `aria-hidden` [attribute value][] of target elements. An example of such a situation would be when closing a modal dialog makes previously hidden elements not [focusable][] and part of the [sequential focus navigation][] become [focusable][] and part of the [sequential focus navigation][].

@WilcoFiers WilcoFiers added the Review Call 1 week Call for review for small changes label Jun 2, 2022
@WilcoFiers WilcoFiers merged commit 19dc17f into act-rules:develop Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review Call 1 week Call for review for small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should negative tabindex fail in aria-hidden? [6cfa84]

7 participants