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(components/tab-panel): improve className safety by using 'classnames' #16081

Merged
merged 1 commit into from
Jun 11, 2019

Conversation

dsifford
Copy link
Contributor

Let me know if you have any questions or if I missed something.

Description

This PR does two things:

  1. Improves safety of the interpolation of className for tabs (currently the string undefined will show up if the tab doesn't have the className property defined).
  2. Relaxes the strictness and makes the className property of tab optional.

How has this been tested?

Yes. All tests still pass fine.

Screenshots

N/A

Types of changes

Bug fix

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

This commit does two things:
1. Improves safety of the interpolation of className for `tab`s (currently the
   string `undefined` will show up if the `tab` doesn't have the `className`
   property defined).
2. Relaxes the strictness and makes the `className` property of `tab` optional.
@gziolo gziolo added [Type] Code Quality Issues or PRs that relate to code quality [Package] Components /packages/components labels Jun 11, 2019
Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

Thanks for working on it. I agree with the changes proposed 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Components /packages/components [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants