Skip to content

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

Conversation

Mash707
Copy link
Contributor

@Mash707 Mash707 commented Apr 4, 2025

Related to #11740
Towards #10173
I have divided the issue into 2 PRs to make it easier for reviewing

@patternfly-build
Copy link
Contributor

patternfly-build commented Apr 4, 2025

<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>
Copy link
Contributor

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">
Copy link
Contributor

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

@Mash707 Mash707 force-pushed the page-update-examples-to-provide-a11y-labels-part-two branch from 05475c3 to 67fa302 Compare April 21, 2025 21:14
@Mash707
Copy link
Contributor Author

Mash707 commented Apr 21, 2025

I have made the necessary changes. Let me know what you think.

@Mash707 Mash707 requested a review from thatblindgeye April 21, 2025 21:16
@thatblindgeye thatblindgeye merged commit 0625602 into patternfly:main Apr 28, 2025
13 checks passed
@Mash707 Mash707 deleted the page-update-examples-to-provide-a11y-labels-part-two branch April 28, 2025 17:42
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-code-editor@6.3.0-prerelease.2
  • @patternfly/react-core@6.3.0-prerelease.2
  • @patternfly/react-docs@7.3.0-prerelease.2
  • @patternfly/react-drag-drop@6.3.0-prerelease.2
  • demo-app-ts@6.0.0-prerelease.104
  • @patternfly/react-table@6.3.0-prerelease.2
  • @patternfly/react-templates@6.3.0-prerelease.2

Thanks for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants