carbon
carbon copied to clipboard
[Bug]: Toggle disabled state has focus on click
Package
@carbon/react
Browser
Chrome
Package version
1.8.0
React version
No response
Description
When the toggle is set to disabled (both md & sm), onClick, the focus outline still shows. Expecting the click to not trigger any visual change:
Reproduction/example
https://react.carbondesignsystem.com/?path=/story/components-toggle--playground&args=disabled:true;hideLabel:false;toggled:false;size:sm
Steps to reproduce
N/A
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] I checked the current issues for duplicate problems