-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: set viewport-fit=cover to enable CSS env() variables in PWAs #20836
base: main
Are you sure you want to change the base?
Conversation
flow-tests/test-ccdm/src/test/java/com/vaadin/flow/ccdmtest/IndexHtmlRequestHandlerIT.java
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
I wonder if it's potentially a breaking change? |
I see a benefit of setting this option by default, because this gives a flexibility and customisability to developers to setup the viewport best alignment on modern side-to-side device screens, e.g. with Though this should be tested on various devices before released. And if we spot any significant changes in displaying, we may want to postpone this change to Vaadin 25. Do you @vursen or someone from Design System team mind to test this on various devices or shall Flow team do? |
Description
Using
env()
variables in PWAs requiresviewport-fit=cover
to be set in the<meta name="viewport">
. Without this setting, some parts of such components as app-layout get cut off on iOS devices. Addingviewport-fit
follows MDN's documentation aboutenv()
variables and helps fix such issues .Fixes vaadin/web-components#8449
Type of change