-
Notifications
You must be signed in to change notification settings - Fork 5
Add a html import 'valo-all' for Vaadin Flow users #47
Comments
Now that the individual element themes are moved to the corresponding element repos, and are imported by default, do you mean that there should be a |
I want a single import to get me everything, including those you mentioned and styles for all individual elements (the maven import of flow/valo should also include all of them). |
As this “styles” package can’t know which elements you actually have in your project, it can’t import those files (e.g. I’m still wondering what the benefit of importing all the other stuff at the same time is. If you are using some of the style modules or custom properties defined in those imports, you should import them manually. Since Flow will be using Valo by default anyways, it can automatically import all of these files. Perhaps Flow wants a convenient way for doing that. @pleku, any thoughts about that? |
@tmattsso Now that the theme style is included in the components themselves, as @jouni explained this repo should have reference to them. Note that many Flow components based on Vaadin Elements are still importing the unstyled file (e.g. |
Yes, it does. All of them. That's the whole point. This ticket is specifically to add convenience for those who do not want to spent time configuring their theme. We can make it easy for those users. @heruan this might be the wrong repo, but this is a discussion specifically on how to use the theme from a flow application. IMO the proposed change would be an easy fix for the issue, at least until there can be a 'real solution' for Flow. |
I really don’t agree. This package can serve other 3rd party elements, so should it import those as well? |
I don’t understand the intent of this request properly, and I think we should open an issue in Flow instead to continue the discussion. |
I think this issue is invalid here and even in Flow. |
Many Flow users don't care which of the components they use, or if they have custom styles or not. For them, just importing a 'valo-all.html' file in a root layout would be a sensible default. From there, they can move to their own file that still imports all but with a few custom definitions. Individual imports would also be possible for real hardcore users.
The text was updated successfully, but these errors were encountered: