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

fix: sp-split-button more button label #3354

Merged
merged 2 commits into from
Jul 25, 2023
Merged

fix: sp-split-button more button label #3354

merged 2 commits into from
Jul 25, 2023

Conversation

jnurthen
Copy link
Member

@jnurthen jnurthen commented Jun 22, 2023

Fixes #3305

Description

Changes the label for the more button from static text to a reference to the sibling button element

Related issue(s)

#3305

Motivation and context

How has this been tested?

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • If my change required a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

@github-actions
Copy link

github-actions bot commented Jun 22, 2023

Tachometer results

Chrome

split-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 671 kB 2035.63ms - 2039.26ms - unsure 🔍
-0% - +0%
-2.46ms - +2.46ms
branch 671 kB 2035.79ms - 2039.10ms unsure 🔍
-0% - +0%
-2.46ms - +2.46ms
-
Firefox

split-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 671 kB 2163.10ms - 2176.86ms - unsure 🔍
-7% - +2%
-169.94ms - +49.78ms
branch 671 kB 2120.42ms - 2339.70ms unsure 🔍
-2% - +8%
-49.78ms - +169.94ms
-

@Westbrook
Copy link
Contributor

Firefox appears to ship a slightly different accessibility tree in response to these updates. Can you take a look at the difference and update either the implementation or the test case here?

@Westbrook Westbrook force-pushed the jnurthen/issue3305 branch from 609dfbb to 4c1f516 Compare July 13, 2023 23:00
findAccessibilityNode<NamedRoledPopupNode>(
snapshot,
(node) =>
(node.role === 'button' || node.role === 'buttonmenu') &&
Copy link
Contributor

Choose a reason for hiding this comment

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

@jnurthen this gets the test passing in Firefox. Not sure if this counts as a bug in Firefox (or possibly in Playwright, they're deprecating these API anyways 😢), but it seems to be OK on our end.

If it's good for you, I'm good to merge this in.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks for fixing that. That looks good.

@Westbrook Westbrook force-pushed the jnurthen/issue3305 branch from 4c1f516 to 9a4c30b Compare July 18, 2023 01:58
@Westbrook Westbrook force-pushed the jnurthen/issue3305 branch from 9a4c30b to 0326dfa Compare July 25, 2023 16:34
Copy link
Contributor

@Westbrook Westbrook left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for getting this cleared up for us!

@Westbrook Westbrook merged commit b4c9595 into main Jul 25, 2023
@Westbrook Westbrook deleted the jnurthen/issue3305 branch July 25, 2023 16:54
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.

[Bug]: sp-split-button more button should be labelled by button element
2 participants