-
Notifications
You must be signed in to change notification settings - Fork 4k
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(Modal): remove dimmer={false} #2882
fix(Modal): remove dimmer={false} #2882
Conversation
Signed-off-by: Oleksandr Fediashov <ofediashov@exadel.com>
Codecov Report
@@ Coverage Diff @@
## master #2882 +/- ##
=======================================
Coverage 99.67% 99.67%
=======================================
Files 161 161
Lines 2733 2733
=======================================
Hits 2724 2724
Misses 9 9
Continue to review full report at Codecov.
|
@mihai-dinculescu thanks for PR 👍 I've pushed some updates and update the PR's description |
…github.com/Semantic-Org/Semantic-UI-React into docs_modal_fix_multiple_and_close_examples
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.
Whops. It was already done. Sorry about that.
I believe this is actually a bug fix to 0.80.1, correct? It should have been shipped as a breaking change in the 0.81.0 release, but now that we've missed that I am inclined to say we're "fixing" the 0.81 release. Is this sane to others? |
In fact, |
Performed a review again, merged. @mihai-dinculescu thanks 👍 |
Released in |
Fixes #2873.
In fact, this change should be done in
v0.81.0
when we performed update to SUI 2.3 (#2657). Without adimmer
, it is no longer able to figure out the position of the modal.Before
You able to hide a dimmer with:
<Modal dimmer={false} />
.After
This behaviour is deprecated and removed, you need to apply custom styling for dimmers if you actually need this feature.
Changes
1. Multiple example
Remove the now controversial
dimmer={false}
. It adds nothing to the example anyway.2. Close Config example
Make it so that the "Yes" and "No" buttons inside the Modal can close it. The "No Close on Dimmer Click" example is currently unclosable and requires browser refresh.
3. Dimmer examples
Removed useless example with
dimmer={false}
.4. Remove useless tests and update propTypes for the
dimmer
prop