-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
feat: add variant prop on the Tabset component #1899
feat: add variant prop on the Tabset component #1899
Conversation
Features
Bug Fixes
Contributors@rgah2107, @LeandroTorresSicilia Commit-Lint commandsYou can trigger Commit-Lint actions by commenting on this PR:
|
Code Climate has analyzed commit a26a624 and detected 4 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
box-sizing: border-box; | ||
} | ||
${props => | ||
(props.variant === 'card' || !variants.includes(props.variant)) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is not much implication since there are only two elements in the array but here you can use a map instead, thus avoiding the iteration
fix: #1880
Changes proposed in this PR:
add variant prop
add tests
add a new interactive example
I have followed (at least) the PR section of the contributing guide.
@nexxtway/react-rainbow