According to the designs, modals should be centered vertically. The change removes static top margin and centers the modal component
Details
- Reviewers
tomek atul • benschac - Commits
- rCOMMff68fc69e922: [web] Center modals vertically
In web app, all existing modals should display in the center of view.
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
web/modals/modal.css | ||
---|---|---|
12 | For centering modals I think transform translate might be a better fit: https://wattenberger.com/blog/css-percents https://stackoverflow.com/questions/6810031/css-center-element-within-a-div-element |
web/modals/modal.css | ||
---|---|---|
12 | What's the impact on performance of each approach? |
web/modals/modal.css | ||
---|---|---|
12 | @benschac Why is transform: translate(...) better here? |
web/modals/modal.css | ||
---|---|---|
12 | I googled around a bit more. This CSS makes sense and is a bit more readable. I don't think there's added benefit to my previous suggestion. Sorry about that. |