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

Modal Dialog Pattern: Clarify initial focus and aria-describedby guidance #1707

Merged
merged 5 commits into from
Dec 30, 2020
Merged

Modal Dialog Pattern: Clarify initial focus and aria-describedby guidance #1707

merged 5 commits into from
Dec 30, 2020

Conversation

patrickhlauke
Copy link
Member

@patrickhlauke patrickhlauke commented Dec 26, 2020

  • reworks/expands the initial focus section for modal dialogs to include the case of structured content dialogs (not necessarily covered by the "large enough to cause scrolling")
  • adds advice about aria-describedby and when it's best NOT to use it (for structure-heavy dialogs)

Closes #442


Preview | Diff

@patrickhlauke
Copy link
Member Author

happy for further wordsmithing/tweaking ... thought i'd just take a stab at this to start to try and address #442 which unfortunately still bubbles up as a topic of discussion in audits

- reworks/expands the initial focus section for modal dialogs to include the case of structured content dialogs (not necessarily covered by the "large enough to cause scrolling")
- adds advice about `aria-describedby` and when it's best NOT to use it (for structure-heavy dialogs)
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.

Thanks, @patrickhlauke !

I do think that this clarifies, as well as adding the new point about structured content.
I like that "Generally, focus is initially set on the first focusable element." was moved outside of the list of examples, making it the default unless other conditions are met.

I just have a couple of suggestions: deleting some words, and using " in code examples instead of <q> (thanks for pointing that out 😄 ).

aria-practices.html Outdated Show resolved Hide resolved
aria-practices.html Outdated Show resolved Hide resolved
patrickhlauke and others added 2 commits December 29, 2020 16:35
Co-authored-by: Carolyn MacLeod <[email protected]>
Co-authored-by: Carolyn MacLeod <[email protected]>
@patrickhlauke
Copy link
Member Author

@carmacleod accepted your suggestions. thanks.

@patrickhlauke
Copy link
Member Author

as an aside ... I see lots of approved pull requests in this repo, but they're lingering without being merged. intentional? do you merge them all in one big go, or...

@carmacleod
Copy link
Contributor

as an aside ... I see lots of approved pull requests in this repo, but they're lingering without being merged. intentional?

@mcking65 does the final review and merging, and he's a busy guy. :)

Looking at open PRs and filtering Reviews by "Approved review", I see that there are 15.

Of the 8 that were created in December, most are either infrastructure or unit test related, so they could go in with one approving review. They're just stuck in the "Holiday Backlog". ;)

Of the 7 earlier PRs, 1 is infrastructure (but touches 77 files and needs to be rebased again), and several are either new or completely refactored examples (which require a bunch of reviewing/testing and at least 3 approving reviews). I'll look into the remaining few to see if I can move them along.

Of course, if you are offering to help review open PRs, that would be super awesome! 😄

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

Thanks @patrickhlauke !

@mcking65
Copy link
Contributor

@patrickhlauke wrote:

as an aside ... I see lots of approved pull requests in this repo, but they're lingering without being merged. intentional? do you merge them all in one big go, or...

The number and type of needed approving reviews depends on what the PR is changing. If a PR adds or significantly changes an example, we require all the reviews listed in our PR review process. As appropriate, we remove various reviews from the process.

We've been working at making a process that is both more disciplined and rigorous to address feedback on quality but at the same time find ways of improving efficiencies. It has been a really tricky balance given the number of active participants in the task force and the level of support resources we have available. I'm optomistic that in 2021 we will be able to make significant gains in both quality and efficiency through stronger community engagement programs.

Copy link
Contributor

@mcking65 mcking65 left a comment

Choose a reason for hiding this comment

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

@patrickhlauke

Thank you very, very much for this PR!

I'd like to ensure the purpose of the guidance and when it applies is a bit more clear. Also, we can simplify some of the language for consistency with the rest of APG. I made two suggestions to these ends.

aria-practices.html Outdated Show resolved Hide resolved
aria-practices.html Outdated Show resolved Hide resolved
patrickhlauke and others added 2 commits December 30, 2020 08:37
@patrickhlauke
Copy link
Member Author

Accepted the suggested rewordings. thanks @mcking65

Copy link
Contributor

@mcking65 mcking65 left a comment

Choose a reason for hiding this comment

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

@patrickhlauke

Thank you again for this PR. It provides meaningful improvement to the clarity of the guidance. And, I'm really happy to close an issue that has been outstanding for more than 2 years!

As this is a clarification of existing guidance as opposed to a change, I'm comfortable classifying this as editorial and merging given that it also as approval from @carmacleod.

@mcking65 mcking65 changed the title Tweak dialog advice Modal Dialog Pattern: Clarify initial focus and aria-describedby guidance Dec 30, 2020
@mcking65 mcking65 merged commit 90c8cde into w3c:master Dec 30, 2020
@patrickhlauke patrickhlauke deleted the patrickhlauke-issue442 branch December 30, 2020 20:56
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.

Focus advice for content-heavy dialogs
3 participants