carbon icon indicating copy to clipboard operation
carbon copied to clipboard

[Bug]: Toggle disabled state has focus on click

Open shixiedesign opened this issue 2 years ago • 0 comments

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:

Aug-01-2022 15-51-03

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

shixiedesign avatar Aug 01 '22 07:08 shixiedesign