Skip to content

Change label group to ul/li so that they are individually reachable#7485

Closed
llastflowers wants to merge 4 commits intomainfrom
llastflowers/15026/group-of-labels-sr-fix
Closed

Change label group to ul/li so that they are individually reachable#7485
llastflowers wants to merge 4 commits intomainfrom
llastflowers/15026/group-of-labels-sr-fix

Conversation

@llastflowers
Copy link
Contributor

Addresses https://github.com/github/accessibility-audits/issues/15026

Changelog

New

New CSS module to override list styling and make the story look exactly the same as before

Changed

Change label group to ul/li so that they are individually reachable and can be announced separately by SR

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

@llastflowers llastflowers requested a review from a team as a code owner January 29, 2026 20:18
@changeset-bot
Copy link

changeset-bot bot commented Jan 29, 2026

🦋 Changeset detected

Latest commit: fa4e5da

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request improves accessibility by changing the label group structure from plain div elements to semantic ul/li elements, making labels individually reachable and separately announced by screen readers.

Changes:

  • Converted the GroupOfLabels story to use Stack with as="ul" prop
  • Wrapped each IssueLabel in li elements for proper list semantics
  • Added a new CSS module (IssueLabel.features.stories.module.css) to reset list styling

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/react/src/experimental/IssueLabel/IssueLabel.features.stories.tsx Updated GroupOfLabels story to use semantic ul/li structure with Stack component
packages/react/src/experimental/IssueLabel/IssueLabel.features.stories.module.css New CSS module to reset list styles and maintain visual appearance

@github-actions github-actions bot requested a deployment to storybook-preview-7485 January 29, 2026 20:22 Abandoned
@github-actions github-actions bot temporarily deployed to storybook-preview-7485 January 29, 2026 20:31 Inactive
@llastflowers llastflowers added the integration-tests: skipped manually Changes in this PR do not require an integration test label Jan 29, 2026
@llastflowers
Copy link
Contributor Author

integration tests skipped; Storybook-only changes

@llastflowers
Copy link
Contributor Author

issue closed as not planned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration-tests: skipped manually Changes in this PR do not require an integration test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant