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

BREAKING CHANGE: update Confirm to Modal v1 API #634

Merged
merged 5 commits into from
Oct 9, 2016

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Oct 6, 2016

This PR updates the Confirm addon to use the Modal v1 API. It is currently broken.

active => open
onHide => onClose

@levithomason levithomason changed the title fix(Confirm): update to Modal v1 API BREAKING CHANGE: update Confirm to Modal v1 API Oct 6, 2016
@jeffcarbs
Copy link
Member

jeffcarbs commented Oct 6, 2016

Feels like this should've been caught with a test. Can you add just a basic "pass open, confirm is visible on page" test, similar to the Modal? I try to avoid testing duplicate functionality, but open is actually a prop on Confirm so it makes sense that a test would cover its usage.

@levithomason
Copy link
Member Author

Absolutely agreed, on my list. IMO no public API ought to be untested.

@codecov-io
Copy link

codecov-io commented Oct 6, 2016

Current coverage is 100% (diff: 100%)

Merging #634 into master will not change coverage

@@           master   #634   diff @@
====================================
  Files         119    119          
  Lines        1890   1892     +2   
  Methods         0      0          
  Messages        0      0          
  Branches        0      0          
====================================
+ Hits         1890   1892     +2   
  Misses          0      0          
  Partials        0      0          

Powered by Codecov. Last update 3fb0ca7...9102d64

@levithomason levithomason merged commit 6f9e8e9 into master Oct 9, 2016
@levithomason levithomason deleted the fix/confirm-modal branch October 9, 2016 21:25
@levithomason
Copy link
Member Author

Released in semantic-ui-react@0.55.0

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

Successfully merging this pull request may close these issues.

3 participants