Overlay for Side Modal Component #4155
-
Hi Paste team, For the side panel component, is there any documentation around including an dark background overlay when the side panel is open (similar to the modal experience)? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Sorry, I don't know how to help with that. I did do a search though, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
I couldn't find specific documentation in the Paste repository about adding a dark background overlay to the Side Panel component. However, there are some related discussions that might be helpful. For instance, in a discussion about the side modal, it was mentioned that the side modal intentionally does not use an overlay to allow users to view and interact with the content underneath [1]. If you want to implement a dark background overlay similar to a modal, you might need to customize the component yourself, as there doesn't seem to be built-in support for this feature in the current implementation. |
Beta Was this translation helpful? Give feedback.
-
Hey @tonge495 ! Can you share more about your use case? Specifically, if there's a reason you need to use the Side Modal instead of the regular Modal if you want to show an overlay? |
Beta Was this translation helpful? Give feedback.
Got it—I'd recommend Modal here still since our normal Modal adjusts to the height of the content in it, so it'll accommodate lengthy content.
Side Modal should mainly only be used when the user needs to reference content on the page while having the Side Modal open, which is why there's no background overlay. So for all other modal cases, you can default to using the normal Modal.