-
Notifications
You must be signed in to change notification settings - Fork 169
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
Get the application theme and replace the html imports for the bundler with theme ones #3288
Comments
@caalador : I'm not familiar with the way the themes work at all. So please clarify the ticket for me: as I see from the https://github.com/vaadin/vaadin-button e.g. the theme is imported inside the HTML file. The first sentence is clear :
Means extracting somehow the theme from the application as a class. The second sentence is not clear for me:
The second question makes me confusing: how may I specify my own theme at all without webjar modification? |
The base is that our components have the On the fly we check that the target item exists in the servlet resources so that we don't change a possibly working import that matches to a faulty theme import. webJars are strictly not needed as it works also from a local file that for vaadin-button would be |
OK, got it. The question was related to the fact that there is also https://github.com/vaadin/vaadin-button/blob/master/vaadin-button.html which imports the
Alright, the description is confusing then. So technically it doesn't matter whether the file is in the webjar or not but it should be in the end available as a file resource in the frontend directory. Thanks! |
Make it possible to get the used theme from the class specified with the
@Theme(MyTheme.class)
annotation for the bundler in flow-maven-plugin and to get the theme html import to path used in url translation.The theme import path only applies to files from (
@HtmlImport
) that have on the import path a march for the baseUrl specified inMyTheme::getBaseUrl
.If there are multiple different
@Theme
specified, things should explode with clear message on: multiple themes are not supported, found this thing X from Y and Z from W.The text was updated successfully, but these errors were encountered: