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): disabled focus and styles #17675

Merged

Conversation

ariellalgilmore
Copy link
Member

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:
Screenshot 2024-10-07 at 3 49 50 PM

after:
Screenshot 2024-10-07 at 3 34 17 PM

Changelog

New

  • added styles for sliders with a upper and lower slider on disabled
  • included disabled state on tabIndex

Changed

  • update test to properly check that there is no focusable element when disabled

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

Copy link

netlify bot commented Oct 7, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit d8ce49c
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6706a6d501e19100080efe6c
😎 Deploy Preview https://deploy-preview-17675--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 7, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d8ce49c
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6706a6d59fb2eb0008aef103
😎 Deploy Preview https://deploy-preview-17675--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.36%. Comparing base (f232cb6) to head (d8ce49c).
Report is 25 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@ariellalgilmore ariellalgilmore marked this pull request as ready for review October 8, 2024 14:10
@ariellalgilmore ariellalgilmore requested a review from a team as a code owner October 8, 2024 14:10
Copy link
Member

@annawen1 annawen1 left a 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!

@kennylam kennylam added this pull request to the merge queue Oct 14, 2024
Merged via the queue into carbon-design-system:main with commit 9a4c29b Oct 14, 2024
36 checks passed
@ariellalgilmore ariellalgilmore deleted the fix/slider-disabled branch October 14, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[a11y]: Slider - Playground -Screen Reader is not announcing the Disable Status for the Slider Control
3 participants