-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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): disabled focus and styles #17675
fix(slider): disabled focus and styles #17675
Conversation
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17675 +/- ##
==========================================
+ Coverage 77.08% 77.36% +0.27%
==========================================
Files 409 409
Lines 14023 14077 +54
Branches 4355 4324 -31
==========================================
+ Hits 10809 10890 +81
+ Misses 3044 3018 -26
+ Partials 170 169 -1 ☔ View full report in Codecov by Sentry. |
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.
Looking good to me!
9a4c29b
Closes #16633
When putting the slider in a disabled state the user could still focus to it. This updates so you can no longer focus on the element when it's disabled.
Also, the disabled styles looked a bit off for two sliders
before:
after:
Changelog
New
tabIndex
Changed
Testing / Reviewing
go to slider stories and turn on disabled state
since the controls aren't turned on for the two sliders I tested it locally in storybook but updating a story with the prop
disabled