-
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
Popup's do not work with modal's when dimmers are enabled. #1803
Comments
@Vino4 thanks for creating this issue. I've had the same problem. We're using rc-time-picker and have just added a Modal around that component. The pop-up on the time picker now only shows if the dimmer on the modal is set to false. Update for anyone following: I've figured out this bug only happens for us when the dimmer is set to "blurring". If it's just left as the default dimmer it works as expected. |
Oh boy, this is a tricky issue. In short, the CSS for a blurring dimmer will blur anything outside of the The Popup is, therefore, outside of the In this case, the Popup needs to be rendered into the Modal, with the Modal as its In order to do this currently, you'd have to have some ugly logic. First, the Modal needs to be rendered, with some unique id so you can find the DOM node. Then, However, this also is insufficient as the Popup currently doesn't calculate its position based on the WorkaroundUse a FixThe best path here is likely to update the CSS for blurring dimmers. Right now, it blurs anything that is not a .blurring.dimmed.dimmable > :not(.dimmer) {
filter: blur(5px) grayscale(0.7);
} Simply allowing a className like I would suggest posting a bug on SUI core and linking this suggestion to it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions. |
Ugh - just found a link to this issue going through my code. Anyone up for taking a look at this? It would be pretty awesome 😎 . Posting mainly to de-stale this issue ... I'd take it on but I think the css is a little out of my depth. |
I found a way to make it work. Set |
@pdfowler @aryalprakash per the comment above, either of you might want to try doing this:
Because of the chicken or the egg situation with how the popup is rendered, this is something that will have to be fixed in CSS. |
According to SUI 761, you can set the popup to display inline, rather than attached to the body tag. However, I swore I had seen a way to attach the popup to an element, rather than to the body, but maybe that was on another component. Anyone have thoughts on this path? Also, @aryalprakash, I'm not sure how you got z-index to work since as @levithomason mentioned, even if the popup is at the "top" of the z-index stack, it will still be blurred per the css implementation of dimmer. Inspecting the elements, my modal's dimmer has a default |
Inline popups are something I've been wanting as well because if you have a pop-up in something like a scrolling sidebar, the pop-up doesn't stick to the element |
Looking at the history of this, it looks like inlining was an issue from the original PR
... with the discussion continuing around a possible
While other discussions address injecting the Portal adjacent to the trigger. @Debrice asked:
Question with those more familiar with the internals, engineering wise, is this an issue that the Portal component can now support? I assume it is not as simple as adding the edit: It appears that Portal does support the edit2: After reviewing @levithomason comments above, sounds like there's some additional Fu involved. Hoping to find some time this weekend to take a look, but any further guidance would be appreciated 😎 |
Hi, Anyone found a solution yet? I have been struggling with this issue as well.. |
I have the same issue... Could it be fixed, please? |
There has been no activity in this thread for 180 days. While we care about every issue and we’d love to see this fixed, the core team’s time is limited so we have to focus our attention on the issues that are most pressing. Therefore, we will likely not be able to get to this one. However, PRs for this issue will of course be accepted and welcome! If there is no more activity in the next 180 days, this issue will be closed automatically for housekeeping. To prevent this, simply leave a reply here. Thanks! |
Anyone who's still on this, a possible workaround could be to set |
Spoke a bit too soon. Default dimmers do work, as shown above.
However, My original diagnosis and proposed solution still seems relevant: #1803 (comment) |
This comment was marked as spam.
This comment was marked as spam.
This worked for me:
|
There has been no activity in this thread for 180 days. While we care about every issue and we’d love to see this fixed, the core team’s time is limited so we have to focus our attention on the issues that are most pressing. Therefore, we will likely not be able to get to this one. However, PRs for this issue will of course be accepted and welcome! If there is no more activity in the next 180 days, this issue will be closed automatically for housekeeping. To prevent this, simply leave a reply here. Thanks! |
The css fix from @semireg didn't work for me, but adding a custom wrapper with <Popup
...
popper={<div style={{ filter: 'none' }}></div>}
...
/> |
I encountered the same issue, but I was able to resolve it by using some external CSS: .ui.popup.transition.visible { This CSS code snippet fixed the problem for me. |
This is a follow up to this issue:
#1545
The submitter was forwarded to /Semantic-UI
I followed up in this post:
Semantic-Org/Semantic-UI#5440
It turns out that the issue has to do with the order the the popups/modals are created in.
/Semantic-UI responded that pre-existing modals should be used for this.
As far as i know, there's no way to achieve that in the current react variant of the UI.
Thank you :)
Steps
Expected Result
Hovering over trigger displays the popup on top of the modal
Actual Result
Popup displays behind the modal, even behind the dimmer actually!
Version
0.70.0
Testcase
https://codepen.io/eGust/pen/zZXomK
The text was updated successfully, but these errors were encountered: