Skip to content
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

fix(UIShell): avoid spreading isSideNavExpanded to non Carbon elements #8135

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Mar 19, 2021

Closes #3970

This PR checks the display name of Carbon SideNav children before applying UI Shell specific props to avoid unrecognized prop errors. This is likely a stop gap solution until the UI Shell is refactored

Testing / Reviewing

Confirm that isSideNavExpanded is only found on components that are expecting this prop

@netlify
Copy link

netlify bot commented Mar 19, 2021

Deploy preview for carbon-elements ready!

Built with commit 0920f4e

https://deploy-preview-8135--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Mar 19, 2021

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 0920f4e

https://deploy-preview-8135--carbon-components-react.netlify.app

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

Not seeing any warnings when running locally
LGTM 👍 ✅

Copy link
Contributor

@andreancardona andreancardona left a comment

Choose a reason for hiding this comment

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

same - looks good!

@kodiakhq kodiakhq bot merged commit e13a36a into carbon-design-system:main Mar 24, 2021
@emyarod emyarod deleted the 3970-ui-shell-spread-issidenavexpanded branch March 25, 2021 18:53
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.

React does not recognize the isSideNavExpanded prop on a DOM element
3 participants