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
The theme property is marked as deprecated in web components, however using the attribute should be allowed.
Currently it is confusingly deprecated for React wrappers. It should be safe to keep theme prop supported without deprecation, as the property support removal from the component would not make any impact for React users.
ThemePropertyMixin allows specifying themes only via the theme attribute. However, since ThemePropertyMixin also defines a protected read-only property theme, it makes both Svelte and Vue consider that the theme attribute must be set via that property, which doesn't work because the property is read-only.
In React wrappers it doesn't make sense to have this property as deprecated, you can just use attribute.
Activity
web-padawan commentedon Nov 15, 2022
Please note that
themeproperty was deprecated intentionally, see vaadin/web-components#3529In React wrappers it doesn't make sense to have this property as deprecated, you can just use attribute.