You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 6, 2021. It is now read-only.
To use the badge utility, you first need to import the style sheet into the correct style scope where you want to use it.
In server-side views (Java), import the JavaScript module using the @jsmodule annotation and then import the style sheet it defines by using the @CssImport annotation
@JsModule("@vaadin/vaadin-lumo-styles/badge.js")
// Here, we add the style sheet to the global scope
@CssImport(include = "lumo-badge")
However, @CssImport must have a value property, so the code will not compile.
The text was updated successfully, but these errors were encountered:
The workaround is to place an empty empty.css file into frontend/styles/empty.css, then use the following annotation: @CssImport(value = "./styles/empty.css", include = "lumo-badge").
Then you can place badges into your routes with the following Java code:
https://vaadin.com/docs/themes/lumo/badges.html has
However,
@CssImport
must have avalue
property, so the code will not compile.The text was updated successfully, but these errors were encountered: