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.
Vaadin 12 brought us the handy componentaddThemeVariants(String) method for components. However in the documentation there is still usage of button.getElement().setAttribute("theme", "contrast primary"); at least in https://vaadin.com/docs/v12/flow/theme/using-component-themes.html. Update examples across the board to use the new API .
The text was updated successfully, but these errors were encountered:
There was already a commit about it: "Add theme variants documentation (#216)"
In the documentation, he mentioned the old way as an alternative,
"If you want more flexibility (which may come in handy when adding non-standard theme variants to the component), you can manipulate the value of the theme attribute directly:"
Vaadin 12 brought us the handy
componentaddThemeVariants(String)
method for components. However in the documentation there is still usage ofbutton.getElement().setAttribute("theme", "contrast primary");
at least in https://vaadin.com/docs/v12/flow/theme/using-component-themes.html. Update examples across the board to use the new API .The text was updated successfully, but these errors were encountered: