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

[react] HeaderSideNavItems does not apply className passed as a prop #5273

Closed
1 of 2 tasks
zevioso opened this issue Feb 5, 2020 · 0 comments · Fixed by #5275
Closed
1 of 2 tasks

[react] HeaderSideNavItems does not apply className passed as a prop #5273

zevioso opened this issue Feb 5, 2020 · 0 comments · Fixed by #5275
Assignees

Comments

@zevioso
Copy link
Contributor

zevioso commented Feb 5, 2020

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you're having.

When passing a className prop to the HeaderSideItems component, the class is not applied instead customClassName is added as a class to the element.

Is this issue related to a specific component?
HeaderSideNavItems - https://github.com/carbon-design-system/carbon/blob/master/packages/react/src/components/UIShell/HeaderSideNavItems.js

What did you expect to happen? What happened instead? What would you like to
see changed?

The className prop that I pass should be applied.

What browser are you working in?

Chrome, Firefox, Safari

What version of the Carbon Design System are you using?

10.9.2

Steps to reproduce the issue

  1. Add className="test" to <HeaderSideNavItems />

Please create a reduced test case in CodeSandbox

https://codesandbox.io/s/frosty-banach-ny7is?fontsize=14&hidenavigation=1&theme=dark

Additional information

Screen Shot 2020-02-05 at 9 30 04 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants