[TypeScript] [ButtonGroup] disabled shows as non-valid property in classes #18272
Closed
2 tasks done
Labels
bug 🐛
Something doesn't work
component: ButtonGroup
The React component.
good first issue
Great for first contributions. Enable to learn the contribution process.
Current Behavior 😯
In the [ButtonGroup API] it is listed that CSS overrides classes supports a property
disabled
that is applied whendisabled=true
. However passing this style with TypeScript causes typing errors:Expected Behavior 🤔
It should be possible to pass the disabled property and add CSS override classes when the buttongroup is disabled.
Temporary workaround
There is a workaround for the issue, however it is by no means perfect. The following screenshot shows what can be done to achieve the same effect:
Steps to Reproduce 🕹
Steps:
Context 🔦
In our company style we want disabled buttons to not have a box-shadow. We currently need to achieve this using a workaround as seen in the codesandbox as the "disabled" class property is broken.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: