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

Custom theme isn't applied to embedded applications in express build #15873

Closed mshabarov closed 1 year ago

mshabarov commented 1 year ago

Description of the bug

Custom theme styles are not applied to embedded components in Express Build mode (Vaadin 24.0).

Expected behavior

Embedded components are styled properly as any non-embedded application.

Minimal reproducible example

  1. Add the property false</vaadin.frontend.hotdeploy> to the pom.xml in test-embedding-application-theme test module
  2. Remove build-frontend goal from pom.xml of this module
  3. Add com.vaadin:vaadin-dev-server dependency
  4. Run module with mvn jetty:run
  5. Open localhost:8888/index.html and see that the components are not styled.
  6. Set the hotdeploy parameter to true and restart the app. See that the styles are in place.

Versions

Vaadin / Flow version: 24.0.0.beta1 / 24.0.0.beta1 Java version: 17

vaadin-bot commented 1 year ago

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