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.
Details
- Reviewers
tomek atul • benschac - Commits
- rCOMM1a646434baa1: [web] Redesign `Modal` to match Figma
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? |
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. |