Skip to content

fix(react): prevent button nesting warning by switching interactive state#13365

Merged
kodiakhq[bot] merged 4 commits into
carbon-design-system:mainfrom
EmelyanovSI:tile-issue-fix
Mar 22, 2023
Merged

fix(react): prevent button nesting warning by switching interactive state#13365
kodiakhq[bot] merged 4 commits into
carbon-design-system:mainfrom
EmelyanovSI:tile-issue-fix

Conversation

@EmelyanovSI

Copy link
Copy Markdown
Contributor

Closes #13361

Updates ExpandableTile to switch modes if it has NO interactive children.

Changelog

Changed

  • switch interactive initial state to true
  • update interactive state to false if there no interactive elements.

Testing / Reviewing

Ensure that ExpandableTile with interactive content does not cause warnings.

@EmelyanovSI EmelyanovSI requested a review from a team as a code owner March 16, 2023 19:33
@github-actions

github-actions Bot commented Mar 16, 2023

Copy link
Copy Markdown
Contributor

DCO Assistant Lite bot All contributors have signed the DCO.

@netlify

netlify Bot commented Mar 16, 2023

Copy link
Copy Markdown

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c9db648
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/641b427669c5a700088b6633
😎 Deploy Preview https://deploy-preview-13365--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

netlify Bot commented Mar 16, 2023

Copy link
Copy Markdown

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit c9db648
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/641b42768b888b0007059e69
😎 Deploy Preview https://deploy-preview-13365--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.

@EmelyanovSI

Copy link
Copy Markdown
Contributor Author

I have read the DCO document and I hereby sign the DCO.

@francinelucca francinelucca left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! no longer see error when running locally

@kodiakhq kodiakhq Bot merged commit a96bf7c into carbon-design-system:main Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: (ExpandableTile) Warning: validateDOMNesting(...): <button> cannot appear as a descendant of <button>.

3 participants