-
Notifications
You must be signed in to change notification settings - Fork 538
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
PageHeader: Address dom order issues (screen reader experience feedback from sign-off) #3816
Conversation
🦋 Changeset detectedLatest commit: e1b03a3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
f728472
to
14a272c
Compare
ab96e97
to
92799a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved assuming we'll have a follow-up PR to get rid of the hack where we render a breadcrumb in the LeadingAction
slot.
@broccolinisoup - why does this have the "skip changeset" label? Wouldn't we want to cut a release with these changes? |
Yes, I usually add |
closing this due to snapshot merge conflicts and opened another PR #4358 |
As a part of addressing accessibility sign-off review comments https://github.com/github/primer/issues/1115#issuecomment-1499501472, this PR updates the stories to ensure the order of the elements are the following;
PageHeader.Title
ContextArea
(all elements)PageHeader.LeadingAction
PageHeader.TrailingAction
PageHeader.Actions
instead of
ContextArea
(all elements)PageHeader.LeadingAction
PageHeader.Title
PageHeader.TrailingAction
PageHeader.Actions
The motivation behind is to make sure the actions on the page that are displayed above or before the main heading (Context area actions and leading action) should come after the main title (
PageHeader.Title
). With this way, we make sure screen reader users who navigate through heading menus don't miss any actions.While we updated the dom order in the stories and this is how we will recommend to order the elements, we made sure everything, visually stays the same. (Leveraging CSS grid layout)
sign-off review comment reference
Changelog
New
Changed
Removed
Rollout strategy
This is technically a breaking change but PageHeader is still a draft component, so we are good to realise this as a patch. There is one instance at github/github to be updated and I'll list the commit here to be included in the release PR.
Testing & Reviewing
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.