-
Notifications
You must be signed in to change notification settings - Fork 647
PageHeader: Make default heading level h2
#2905
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
Conversation
🦋 Changeset detectedLatest commit: 6ab9078 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 📦
|
|
Slightly off-topic, but within the docs under the |
TylerJDev
left a comment
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.
Overall looks good! I left some comments that might require some discussion, but other than that I think it looks good. Thanks for this too! 😁
src/PageHeader/features.stories.tsx
Outdated
| <Breadcrumbs.Item href="#">PageHeader</Breadcrumbs.Item> | ||
| <Breadcrumbs.Item href="#">PageHeader.tsx</Breadcrumbs.Item> | ||
| </Breadcrumbs> | ||
| <h2 className="visually-hidden">Visually Hidden Title</h2> |
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.
I noticed that in the preview for this example, the heading isn't actually hidden. Is this expected?
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.
😬 No it is NOT EXPECTED 😅 I'll fix it
Oh good catch! On the code it is |
|
@TylerJDev I pushed a commit to make the visually hidden titles visually hidden for real 😅 and fix the docs about the default You can see in the storybook I used |
|
@broccolinisoup - Looks great 🤩. Thank you again! |
This PR changes the
PageHeder.Title's default heading level toh2as discussed hereAlso added a feature story and docs to demonstrate the cases where components are used as a title instead of a typical text title and included a visually hidden title to set an example.
Closes https://github.com/github/primer/issues/1571
Screenshots
No visual changes.
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.