Page MenuHomePhabricator

[web] Redesign `Modal` to match Figma
ClosedPublic

Authored by jacek on Apr 8 2022, 5:54 AM.
Tags
None
Referenced Files
F3347906: D3669.diff
Fri, Nov 22, 1:33 PM
Unknown Object (File)
Tue, Nov 19, 3:14 AM
Unknown Object (File)
Sun, Nov 17, 6:27 AM
Unknown Object (File)
Fri, Nov 15, 6:37 PM
Unknown Object (File)
Fri, Nov 15, 6:37 PM
Unknown Object (File)
Fri, Nov 15, 6:37 PM
Unknown Object (File)
Fri, Nov 15, 6:08 AM
Unknown Object (File)
Thu, Nov 14, 4:36 PM

Details

Summary

Redesigned modal to match existing designs. Refactored and simplified CSS classes and removed redundant container in component.
Removed fixedHeight property, as it was used in one place and had no effect on existing implementation.
Existing modal sizes (small, large) should work as before. Introduced fit-content size option, to allow adjust modal size by its content.

Screenshot_Google Chrome_2022-04-08_150355.png (895×1 px, 114 KB)

Test Plan

Opened currently existing modals. It's size should remain unchanges, but fonts and design should now match Figma.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

The modal in the provided screenshot looks way better!

web/modals/modal.css
8 ↗(On Diff #11226)

I think we could add colors like this (w/ alpha channel) to the theme.css file... but I think it's fine either way

25 ↗(On Diff #11226)

Just a thought (and outside the scope of this diff), but I wonder if naming these modalContainerNarrow and modalContainerWide would make it clear that the difference is just along the X-axis?

27 ↗(On Diff #11226)

Is specifying min-height: 0 necessary? I'm assuming you found that you needed to specify this to get things to look right, just making sure it wasn't included extraneously?

This revision is now accepted and ready to land.Apr 8 2022, 11:17 AM
web/modals/modal.css
27 ↗(On Diff #11226)

Sorry, I missed this comment. Checked this, and it looks like it's not necessary and must have been added by accident.

removed redundant min-height

This revision was automatically updated to reflect the committed changes.