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(ui-shell): allow custom classes on HeaderSideNavItems #5275

Merged

Conversation

tw15egan
Copy link
Member

@tw15egan tw15egan commented Feb 5, 2020

Closes #5273

Ensures custom classes are properly passed down to HeaderSideNavItems

Changelog

Changed

  • Moved customClassName out of the object so the custom class is correctly applied

Testing / Reviewing

Add className="test" to HeaderSideNavItems in the Header Base w/ Navigation story, and ensure the custom class is correctly applied

@tw15egan tw15egan requested a review from a team as a code owner February 5, 2020 20:24
@ghost ghost requested review from abbeyhrt and dakahn February 5, 2020 20:24
@netlify
Copy link

netlify bot commented Feb 5, 2020

Deploy preview for carbon-elements ready!

Built with commit f1e5e4c

https://deploy-preview-5275--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Feb 5, 2020

Deploy preview for carbon-components-react failed.

Built with commit f1e5e4c

https://app.netlify.com/sites/carbon-components-react/deploys/5e3c5e14e6b60200089d9bc6

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @tw15egan!

@zevioso
Copy link
Contributor

zevioso commented Feb 6, 2020

nitpick: There should be a unit test to cover this bug, as the current set of tests didn't catch it originally.

@tw15egan tw15egan merged commit 4b9cc7c into carbon-design-system:master Feb 6, 2020
@tw15egan tw15egan deleted the header-side-nav-classnames branch April 28, 2021 18:17
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] HeaderSideNavItems does not apply className passed as a prop
4 participants