-
Notifications
You must be signed in to change notification settings - Fork 76
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
[Modal] Provide sticky slots adjacent to content slot #4800
Comments
The design for the enhancement is in the works, and we plan to address in the February release. |
@ashetland @SkyeSeitz - Dev is looking to address this in the February release, are there any design changes or recommendations needed before proceeding? |
Yes, we need to take another quick pass at it. I'll dig up the file to put eyes on it again. |
Final spec available in Figma. Sending link to @Elijbet. |
**Related Issue:** #4800 ## Summary Provides `content-top` and `content-bottom` slots. For simplicity, we matched the `padding` on the `content-top` and `content-bottom` to the `content`, with one public prop for the latter. This can further be developed if requested. We decided to move forward with `content-top` and `content-bottom` naming, as this should provide enough context and also aligns with existing `<x>-start/<x>-end` naming.
Verified on Storybook. |
@geospatialem can we add an issue on AFD to add a sample of this to Modal? |
Description
A common request we get is to provide styling / css for a sticky portion of content above the content slot in a modal. Similarly this could be applicable to a bottom content section.
Because there are internally rendered / shadow DOM divs, it's tricky for a consumer to create this styling on their own. A proposal can be made to add sticky top / bottom slots to a modal that surround the content slot - that provide this with built in styles.
Acceptance Criteria
Sticky top / bottom slot/s are added to the modal to provide this styling.
Relevant Info
No response
Which Component
Modal
Example Use Case
Users often want to provide a bit of contextual information (besides the header) above scrolling content within a modal. This is often the case when tabs / a data grid is used in the content slot.
The text was updated successfully, but these errors were encountered: