Skip to content
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: remove responsive step styles when switching to auto-responsive #8860

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Mar 25, 2025

This change ensures that styles applied by responsive steps mode are properly removed when switching to auto-responsive mode in order to avoid unintended side effects. This is specifically important in React wrappers. They use @lit/react which applies web component properties and attributes after the component has already connected to the DOM. As a result, there is a short window during which responsive steps styles can be applied.

An alternative solution could be to delay the initialization of responsive steps styles, but this causes some tests to fail, so I think it's safer to leave it as is for now even though it may be less optimal from the performance perspective.

Related to vaadin/platform#7172

@vursen vursen changed the title fix: do not force layout update immediately fix: remove responsive step styles when switching to auto-responsive Mar 26, 2025
@vursen vursen marked this pull request as ready for review March 26, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants