Skip to content

Conversation

@tay1orjones
Copy link
Member

@tay1orjones tay1orjones commented Jul 12, 2022

Surfaced in slack, Switch wasn't allowing it's children to render at any time because text was always defined via defaultProps

Changelog

Changed

  • remove text default prop, update story

Testing / Reviewing

In the ContentSwitcher/Default story, the "Second section" is now a child instead of the text prop, it should render the same as it did before with no change.

@tay1orjones tay1orjones requested a review from a team as a code owner July 12, 2022 20:16
@netlify
Copy link

netlify bot commented Jul 12, 2022

Deploy Preview for carbon-components-react ready!

Name Link
🔨 Latest commit 180e96a
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/62cef3090c11bd00082cda4a
😎 Deploy Preview https://deploy-preview-11791--carbon-components-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 settings.

@netlify
Copy link

netlify bot commented Jul 12, 2022

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 180e96a
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/62cef309c2e7ea0008659600
😎 Deploy Preview https://deploy-preview-11791--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 settings.

@tay1orjones tay1orjones requested a review from a team as a code owner July 13, 2022 16:29
@kodiakhq kodiakhq bot merged commit a3e74c3 into carbon-design-system:main Jul 13, 2022
tay1orjones added a commit to tay1orjones/carbon that referenced this pull request Jul 13, 2022
* fix(switch): allow children to render

* test(api): update public api snapshot
kodiakhq bot pushed a commit that referenced this pull request Jul 14, 2022
* fix(switch): allow children to render

* test(api): update public api snapshot
kennylam pushed a commit to kennylam/carbon that referenced this pull request Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants