vaadin / flow

Vaadin Flow is a Java framework binding Vaadin web components to Java. This is part of Vaadin 10+.
Apache License 2.0
622 stars 166 forks source link

Theme variant not applied with precompiled frontend bundle #16256

Closed rolfsmeds closed 1 year ago

rolfsmeds commented 1 year ago

Description of the bug

No theme attribute is applied to the page root when a theme variant is applied with the @Theme annotation's variant parameter.

The variant starts working again with vaadin.frontend.hotdeploy=true

Expected behavior

theme attrib should be applied to page root element when variant is supplied to @Theme annotation

Minimal reproducible example

  1. Generate a new V24 application with start.vaadin.com, with the "color mode" set to Dark.
  2. Run the app
  3. Observe dark mode not getting applied

Versions

vaadin-bot commented 1 year ago

This ticket/PR has been released with Vaadin 24.1.0.alpha1 and is also targeting the upcoming stable 24.1.0 version.

vaadin-bot commented 1 year ago

This ticket/PR has been released with Vaadin 24.0.2.