Open mvysny opened 1 year ago
Looking at the linked docs they state as limitation:
Using the built-in Material theme is not currently supported. Custom themes are always loaded on top of the Lumo theme.
Yup, you're right, the documentation clears up everything. Still, the Maven plugin error message could be improved to mention the custom themes and Lumo. Essentially, the same line as the one from the documentation would be great.
Description of the bug
Vaadin fails to build the production bundle for the annotation
@Theme(value = Material.class, themeFolder = "my-theme")
, with a strange error message:If the themeFolder attribute isn't supported in connection with the Material theme, the error message should mention themeFolder instead of something called 'theme name'; or even better, the error message should mention that "Only the Lumo theme supports custom themes".
Expected behavior
Vaadin should either support Material custom theme according to the https://vaadin.com/docs/v14/flow/styling/custom-theme manual, or Maven should fail with a clearer error message.
Minimal reproducible example
@Theme(value = Material.class, themeFolder = "my-theme")
to theMainView
classmvn -C clean package -Pproduction
Versions