Fix inability to tap outside modal on mobile

This commit addresses touch target size issues on mobile devices by
adjusting modal margins. The larger margin allows for easier interaction
for modal dialogs by tapping outside the modal area on smaller screens.

Key changes:

- Introduce 30px margin on larger screens and 20px on smaller devices
  around modals, adhering to accessibility guidelines.
- Remove `max-height: 90vh;` in favor of consistent vertical margins,
  centralizing the spacing control via the `margin` property.
- Remove `max-height: 90v;` used to display scroll-bars as the vertical
  margin is now handled by `margin` property in single place.
This commit is contained in:
undergroundwires
2024-04-15 09:21:31 +02:00
parent f3571abeaf
commit cb144ae472
3 changed files with 15 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ describe('Layout stability', () => {
.contains('button', 'Privacy')
.click();
cy
.get('.modal-content')
.get('.modal-content-content')
.should('be.visible');
});
});