-
Notifications
You must be signed in to change notification settings - Fork 158
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
The slots no longer work on radio buttons #11288
Comments
Probably related with these PRs? |
@abdonrd double-checking, looks like the slots do work with checkbox https://stackblitz.com/edit/vitejs-vite-ebrzif?file=index.html Is there another issue with checkbox? In the meantime, we'll open a PR for radio-button |
@annawen1 oh! I think you're right! Checkbox are working well. |
@abdonrd radio-button PR is in and will be part of the next release, since there is a work around using the |
Thanks! We can't use the label-text, because we have something like this: |
### Related Ticket(s) Closes #11288 ### Description fixes slot for radio-button ### Changelog **New** - {{new thing}} **Changed** - accidentally got removed .... but adding `<slot>` around `${labelText}` **Removed** - {{removed thing}} <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
### Related Ticket(s) Closes carbon-design-system#11288 ### Description fixes slot for radio-button ### Changelog **New** - {{new thing}} **Changed** - accidentally got removed .... but adding `<slot>` around `${labelText}` **Removed** - {{removed thing}} <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
### Related Ticket(s) Closes carbon-design-system#11288 ### Description fixes slot for radio-button ### Changelog **New** - {{new thing}} **Changed** - accidentally got removed .... but adding `<slot>` around `${labelText}` **Removed** - {{removed thing}} <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Description
The slots no longer work on the radio buttons / checkbox:
✅ Application with
@carbon/[email protected]
:https://stackblitz.com/edit/vitejs-vite-58y3ua?file=package.json
❌ Application with
@carbon/[email protected]
:https://stackblitz.com/edit/vitejs-vite-txbijy?file=package.json
Component(s) impacted
Radio button & Checkbox
Browser
Chrome, Safari, Firefox, Microsoft Edge
Severity
Severity 1 = The design is broken in a critical way that blocks users from completing tasks or damages the brand. Affects major functionality, no workaround.
Application/website
IBM Quantum
Package
@carbon/web-components
Code of Conduct
The text was updated successfully, but these errors were encountered: