-
Notifications
You must be signed in to change notification settings - Fork 209
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(color-slider): sp-color-slider fails to announce new value on change after keydown #3303 #3304
Conversation
Tachometer resultsChromecolor-slider permalink
Firefoxcolor-slider permalink
|
9767fd8
to
d705c44
Compare
@@ -350,7 +363,8 @@ describe('ColorSlider', () => { | |||
|
|||
await elementUpdated(el); | |||
|
|||
expect(el.sliderHandlePosition).to.equal(20); | |||
expect(el.sliderHandlePosition).to.equal((20 * 100) / 360); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was gonna merge this through, but JS is having a JS moment on this value not equaling itself. The uniformity here made it nicer to read and easier to understand. I'm gonna check around for a similar alternative, but this PR is good to go, otherwise.
d705c44
to
d81e9d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approximately
is not my favorite, but it does right by this specific test context and allow for all of the tests to be written in the same format. Thanks for getting this in!!
Description
Related issue(s)
Motivation and context
How has this been tested?
Screenshots (if appropriate)
Types of changes
Checklist
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
.