Page MenuHomePhabricator

[web] introduce subheader prop to modal component
ClosedPublic

Authored by ginsu on Dec 7 2023, 11:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 3:53 PM
Unknown Object (File)
Tue, Nov 12, 3:52 PM
Unknown Object (File)
Fri, Nov 8, 4:36 PM
Unknown Object (File)
Fri, Nov 8, 7:09 AM
Unknown Object (File)
Fri, Nov 8, 6:59 AM
Unknown Object (File)
Fri, Nov 8, 6:42 AM
Unknown Object (File)
Thu, Oct 31, 10:59 AM
Unknown Object (File)
Thu, Oct 31, 10:59 AM
Subscribers

Details

Summary

This diff introduces a subheader prop to the modal component. Sometimes we want to render an element in between the header and the modal children content, but we want this element to not follow the spacing rules for the modal children. These elements can be things like banners, tabs, etc. For example:

Screenshot 2023-12-07 at 2.47.47 PM.png (1×3 px, 802 KB)

The subheader prop will extend the entire width of the modal, perfect for elements like banners + tabs.

Linear task: https://linear.app/comm/issue/ENG-5943/extendmodify-the-modal-props-api-to-follow-new-modal-designs

Depends on D10232

Test Plan

Here is an example of using the subheader prop with the community creation modal

Screenshot 2023-12-07 at 2.53.26 PM.png (1×3 px, 802 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Dec 7 2023, 1:04 PM
Harbormaster failed remote builds in B24866: Diff 34390!
ginsu requested review of this revision.Dec 7 2023, 2:03 PM

will make sure that ci passes before landing

This revision is now accepted and ready to land.Dec 8 2023, 9:43 AM
This revision was landed with ongoing or failed builds.Feb 15 2024, 12:10 AM
This revision was automatically updated to reflect the committed changes.