Skip to content

Adding aria labeled by and described by check to SegmentedControl component#1776

Merged
jonrohan merged 12 commits intomainfrom
segmented_control/aria_label_check
Jan 31, 2023
Merged

Adding aria labeled by and described by check to SegmentedControl component#1776
jonrohan merged 12 commits intomainfrom
segmented_control/aria_label_check

Conversation

@jonrohan
Copy link
Member

Description

This adds examples of including Subhead and Label components with the control to demonstrate proper labeling. I also added a new check that will make sure a component has at least one of aria-label, aria-labeledby, aria-describedby

Closes # https://github.com/github/primer/issues/1149

Integration

Does this change require any updates to code in production?

We should check the existing uses of SegmentedControl to make sure they are using an aria-label

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews

@jonrohan jonrohan requested review from a team and keithamus January 24, 2023 18:55
@changeset-bot
Copy link

changeset-bot bot commented Jan 24, 2023

🦋 Changeset detected

Latest commit: bf2ea5f

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

This PR includes changesets to release 1 package
Name Type
@primer/view-components 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

@github-actions github-actions bot added the ruby Pull requests that update Ruby code label Jan 24, 2023
@jonrohan jonrohan temporarily deployed to review-pr-1776 January 24, 2023 18:55 — with GitHub Actions Inactive
@jonrohan jonrohan temporarily deployed to github-pages January 24, 2023 19:01 — with GitHub Actions Inactive
@jonrohan jonrohan temporarily deployed to review-pr-1776 January 24, 2023 19:45 — with GitHub Actions Inactive
@jonrohan jonrohan temporarily deployed to github-pages January 24, 2023 19:49 — with GitHub Actions Inactive
@jonrohan jonrohan temporarily deployed to review-pr-1776 January 24, 2023 21:00 — with GitHub Actions Inactive
@jonrohan jonrohan requested a review from camertron January 24, 2023 21:57
@jonrohan jonrohan temporarily deployed to review-pr-1776 January 24, 2023 22:04 — with GitHub Actions Inactive
@jonrohan jonrohan temporarily deployed to github-pages January 24, 2023 22:09 — with GitHub Actions Inactive
@jonrohan jonrohan temporarily deployed to review-pr-1776 January 25, 2023 00:41 — with GitHub Actions Inactive
@jonrohan jonrohan temporarily deployed to github-pages January 25, 2023 00:46 — with GitHub Actions Inactive
@jonrohan jonrohan marked this pull request as draft January 27, 2023 17:43
@jonrohan jonrohan temporarily deployed to review-pr-1776 January 27, 2023 17:45 — with GitHub Actions Inactive
@jonrohan jonrohan temporarily deployed to github-pages January 27, 2023 17:51 — with GitHub Actions Inactive
@jonrohan jonrohan temporarily deployed to review-pr-1776 January 31, 2023 18:18 — with GitHub Actions Inactive
@jonrohan jonrohan temporarily deployed to github-pages January 31, 2023 18:23 — with GitHub Actions Inactive
@jonrohan jonrohan enabled auto-merge (squash) January 31, 2023 23:06
@jonrohan jonrohan merged commit 61b2887 into main Jan 31, 2023
@jonrohan jonrohan deleted the segmented_control/aria_label_check branch January 31, 2023 23:09
@primer-css primer-css mentioned this pull request Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ruby Pull requests that update Ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants