Skip to content

Page - update examples to provide aria-label/labelledby to page sections #10173

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

Open
thatblindgeye opened this issue Mar 18, 2024 · 4 comments · May be fixed by #11740 or #11741
Open

Page - update examples to provide aria-label/labelledby to page sections #10173

thatblindgeye opened this issue Mar 18, 2024 · 4 comments · May be fixed by #11740 or #11741
Assignees
Labels

Comments

@thatblindgeye
Copy link
Contributor

Describe the enhancement or change
Examples where the page section component is being used (with the <section> element) should be updated to provide an aria-labelledby (if a visible text heading exists in the section) or aria-label (if no visible text heading exists). Context can be found in the following comment chain: patternfly/patternfly-org#3880 (comment)

Completing thia and the React counterpart will go towards adding in verbiage from the following commit in the Page a11y docs

Is this request originating from a Red Hat product team? If so, which ones and is there any sort of deadline for this enhancement?

Any other information?

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@Mash707
Copy link
Contributor

Mash707 commented Apr 2, 2025

@thatblindgeye I went through the discussion. From what I understand is that we need to add aria-label to PageSection component. For example - <PageSection isWidthLimited isCenterAligned aria-label = "Width limited content section">

<PageSection isWidthLimited isCenterAligned>
<Card>
<CardBody>
When a width limited page section is wider than the value of
<code>{c_page_section_m_limit_width_MaxWidth.name}</code>, the section will be centered in the main section.
<br />
<br />
The content in this example is placed in a card to better illustrate how the section behaves when it is
centered. A card is not required to center a page section.
</CardBody>
</Card>
</PageSection>

Currently I have not gone through all examples to see where aria-lablelledby can be used.

@thatblindgeye
Copy link
Contributor Author

Instances where aria-labelledby can be used may be more rare than aria-label for sure, but that'd be fine if that is the case. Really just keeping an eye out for whether there's a heading level that labels a section.

@Mash707 Mash707 linked a pull request Apr 3, 2025 that will close this issue
@Mash707 Mash707 linked a pull request Apr 4, 2025 that will close this issue
@thatblindgeye thatblindgeye moved this from Backlog to PR Review in PatternFly Issues Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: PR Review
4 participants