Skip to content
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

SegmentedControl: Remove tooltip temporarily and add an accessible name to the button #3010

Merged
merged 3 commits into from
Mar 13, 2023

Conversation

broccolinisoup
Copy link
Member

@broccolinisoup broccolinisoup commented Mar 10, 2023

This PR resolves the axe-violation on the SegmentedControlIconButton

Storybook Link

Before : https://primer.style/react/storybook/?path=/story/components-segmentedcontrol-features--icon-only&viewMode=story
After: https://primer-da95297a09-13348165.drafts.github.io/storybook/iframe.html?args=&id=components-segmentedcontrol-features--icon-only&viewMode=story

Closes https://github.com/github/primer/issues/1864 (Hubbers only link)

We decided to disable (remove) the tooltip for now and add a discernable name to the button itself until we resolve more critical issues on the tooltip (ref: https://github.com/github/primer/issues/1909).

Screenshots

Please provide before/after screenshots for any visual changes

Merge checklist

  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@broccolinisoup broccolinisoup requested review from a team and mperrotti March 10, 2023 01:03
@changeset-bot
Copy link

changeset-bot bot commented Mar 10, 2023

🦋 Changeset detected

Latest commit: ffe3fea

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2023

size-limit report 📦

Path Size
dist/browser.esm.js 94.67 KB (-0.01% 🔽)
dist/browser.umd.js 95.24 KB (-0.01% 🔽)

@broccolinisoup broccolinisoup temporarily deployed to github-pages March 10, 2023 01:09 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3010 March 10, 2023 01:09 Inactive
@broccolinisoup broccolinisoup changed the title SegmentedControl: Remove tooltip temporarily and accessible name to the button SegmentedControl: Remove tooltip temporarily and add an accessible name to the button Mar 10, 2023
Copy link
Member

@joshblack joshblack left a comment

Choose a reason for hiding this comment

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

Looks good!

@joshblack
Copy link
Member

@broccolinisoup just a heads up, the link in the PR description seemed to still include tooltips. I used the latest link from the storybook deploy URL (here) and it worked perfectly! Just wanted to share in case something was going on.

@broccolinisoup
Copy link
Member Author

@broccolinisoup just a heads up, the link in the PR description seemed to still include tooltips. I used the latest link from the storybook deploy URL (here) and it worked perfectly! Just wanted to share in case something was going on.

Ah thanks @joshblack ! I added both in the description now for comparison.

@broccolinisoup broccolinisoup added this pull request to the merge queue Mar 13, 2023
Merged via the queue into main with commit 022d449 Mar 13, 2023
@broccolinisoup broccolinisoup deleted the segmented-control-icon-button-axe branch March 13, 2023 22:41
@primer-css primer-css mentioned this pull request Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants