-
Notifications
You must be signed in to change notification settings - Fork 363
chore(page): updated examples to provide a11y labels #11741
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
chore(page): updated examples to provide a11y labels #11741
Conversation
Preview: https://patternfly-react-pr-11741.surge.sh A11y report: https://patternfly-react-pr-11741-a11y.surge.sh |
<p> | ||
Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br /> | ||
of its relative line height of 1.5. | ||
</p> | ||
</Content> | ||
</PageSection> | ||
<PageSection>Panel section content</PageSection> | ||
<PageSection aria-label="Panel section content">Panel section content</PageSection> |
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.
Let's remove "content' from the label so that it'll be "Panel section" that contains the "panel section content"
@@ -325,13 +325,13 @@ export const PageStickySectionBreadcrumb: React.FunctionComponent = () => { | |||
mainContainerId={mainContainerId} | |||
isBreadcrumbWidthLimited | |||
> | |||
<PageSection isWidthLimited> | |||
<PageSection isWidthLimited aria-label="Main title"> |
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.
Similar as th eother PR, let's point to the Content component's id in an aria-labelledby instead
05475c3
to
67fa302
Compare
I have made the necessary changes. Let me know what you think. |
Your changes have been released in:
Thanks for your contribution! 🎉 |
Related to #11740
Towards #10173
I have divided the issue into 2 PRs to make it easier for reviewing