Scrollable Popover #4310
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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. Hi there! For your design exploration on showing a summary of Warnings/Errors/Issues within the Journeys canvas, using popovers can indeed be a scalable solution. Popovers in Paste can contain various kinds of content, including scrollable content, which makes them suitable for your use case where a user might have multiple issues to review. This aligns well with your requirement for scalability and the ability to provide actionable links for users to resolve each Warning/Error/Issue. Here's an example snippet on how you might structure a scrollable Popover content: import {PopoverContainer, PopoverButton, Popover} from '@twilio-paste/core/popover';
import {Box} from '@twilio-paste/core/box';
import {Text} from '@twilio-paste/core/text';
<PopoverContainer>
<PopoverButton variant="primary">View Errors</PopoverButton>
<Popover aria-label="Errors">
<Box style={{maxHeight: '250px', overflowY: 'scroll'}}>
{/* Iterate over your errors/warnings/issues here */}
<Text as="p">Error 1</Text>
<Text as="p">Error 2</Text>
{/* ... */}
</Box>
</Popover>
</PopoverContainer> For more detailed guidance and examples on implementing Popovers, you can refer to the Paste Popover documentation here: https://paste.twilio.design/components/popover/ Regarding your concern about using a side sheet or panel and the interaction potentially feeling awkward with multiple layers of side sheets, it's a valid consideration. If the primary goal is to offer a quick, inline way for users to review and act on errors without navigating away from their current context, popovers might indeed offer a more streamlined user experience. However, if the error resolution process is complex and requires more space or user interaction, transitioning to a side sheet for detailed error handling while keeping the main canvas visible could still be a viable approach. Remember, the key is to balance the need for information density and actionability with maintaining a clean and non-overwhelming user interface. Testing with real users could provide valuable insights into which approach feels more intuitive and effective for your specific use case. I hope this helps! If you have any more questions or need further assistance, feel free to ask. I also did a search, 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.
-
Hi @hajohnston - sorry for the delayed reply here! As PasteBot said, you can make your Popover content scrollable by wrapping the contents in a Box with a If you'd like to style the scrollbar so that it's more aligned with existing components and not using the native scrollbar, feel free to copy our styles from any of our components with custom scrollbar styling, such as Side Panel. |
Beta Was this translation helpful? Give feedback.
Hi @hajohnston - sorry for the delayed reply here! As PasteBot said, you can make your Popover content scrollable by wrapping the contents in a Box with a
maxHeight
andoverflowY
of "scroll
".If you'd like to style the scrollbar so that it's more aligned with existing components and not using the native scrollbar, feel free to copy our styles from any of our components with custom scrollbar styling, such as Side Panel.