fix(app): Center app and robot update modals #14541
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes RQA-2349
Overview
This PR fixes an issue in which the app and robot update modals are not properly centered (as a bonus, the module setup modal is also properly centered).
There's a lot we can do to make this issue less likely to occur in the future, and I've added a note to revisit this topic in the tech debt paydown doc. Because we don't have standardized modal sizing, custom modal widths require a custom left margin offset in order to be properly centered.
At a bare minimum, adding testing to custom width/left-margin modals is a good idea. This at least shows we've gone out of the way to center the modal properly, and anyone who tries to adjust width only will fail a test and have to re-center the modal.
A better, longer-term solution off the top of my head would be to standardize modal sizes (convo w/ design).
Test Plan
Changelog
Risk assessment
low