-
Notifications
You must be signed in to change notification settings - Fork 53
breaking(Button): replace type
prop with secondary
and primary
#419
Conversation
Codecov Report
@@ Coverage Diff @@
## master #419 +/- ##
==========================================
- Coverage 91.77% 91.76% -0.01%
==========================================
Files 41 41
Lines 1325 1324 -1
Branches 169 168 -1
==========================================
- Hits 1216 1215 -1
Misses 105 105
Partials 4 4
Continue to review full report at Codecov.
|
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.
pls take a look at comments
if (onClick) { | ||
onClick(e, this.props) | ||
} | ||
_.invoke(this.props, 'onClick', e, this.props) |
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.
Simplify with invoke()
d7739a3
to
a44b20c
Compare
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.
The added test is failing.
If we decided to remove type
for Button
we should do the same for Menu
and Divider
in the same release.
a44b20c
to
b5428b5
Compare
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.
Don't forget to update CHANGELOG.md
CHANGELOG.md
Outdated
@@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm | |||
|
|||
### Fixes | |||
- Fix endMedia to not be removed from DOM on mouseleave for `ListItem` @musingh1 ([#278](https://github.com/stardust-ui/react/pull/278)) | |||
- Replace the `type` prop with `secondary` and `primary` for `Button` @layershifter ([#419](https://github.com/stardust-ui/react/pull/419)) |
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.
This should go to BREAKING CHANGES!
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.
Nice catch, done
8efcb8c
to
2affefa
Compare
agreed with @miroslavstastny |
Fixes #374, please refer there to get more details.