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(slider): slider input aria-valuetext omits formatOptions for unit #3340 #3346

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

majornista
Copy link
Contributor

Description

Related issue(s)

Motivation and context

The aria-valuetext attribute on the input[type="range"] element within the SliderHandle in the Slider shadowDom should include the _forcedUnit for units not included in Intl.NumberFormatOptions, like px or pc.

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

Best practices

This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against main.

@majornista majornista linked an issue Jun 21, 2023 that may be closed by this pull request
1 task
@github-actions
Copy link

github-actions bot commented Jun 21, 2023

Tachometer results

Chrome

slider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 448 kB 144.32ms - 148.17ms - unsure 🔍
-0% - +4%
-0.31ms - +5.15ms
branch 447 kB 141.89ms - 145.76ms unsure 🔍
-4% - +0%
-5.15ms - +0.31ms
-
Firefox

slider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 448 kB 424.24ms - 447.80ms - unsure 🔍
-4% - +2%
-18.86ms - +10.82ms
branch 447 kB 431.01ms - 449.07ms unsure 🔍
-3% - +4%
-10.82ms - +18.86ms
-

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. Just rebased to main, and will merge this up if all stays green. Thanks @majornista 🙇🏼

@Westbrook Westbrook merged commit 88e0bda into main Jun 27, 2023
46 checks passed
@Westbrook Westbrook deleted the Issue-3040-slider-a11y branch June 27, 2023 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug][a11y]: Slider input aria-valuetext omits formatOptions for unit
2 participants