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
I was trying to create a custom SVG icon set with enums. I also wanted to use it interchangeably with VaadinIcons, which implements IconFactory. However, IconFactory.create() returns Icon, not AbstractIcon -- and SvgIcon is an AbstractIcon, not Icon.
Description
I was trying to create a custom SVG icon set with enums. I also wanted to use it interchangeably with VaadinIcons, which implements IconFactory. However, IconFactory.create() returns Icon, not AbstractIcon -- and SvgIcon is an AbstractIcon, not Icon.
I was basing my code on this example: https://vaadin.com/docs/latest/components/icons#custom-icon-collection-apis
Expected outcome
I want to use my SvgIcons interchangeably with VaadinIcons (and potentially also FontIcons).
Minimal reproducible example
Here is some simplified code of what I wanted to achieve:
Steps to reproduce
See example above
Environment
Vaadin version(s): 24.6.0
OS: MacOs
Browsers
No response
The text was updated successfully, but these errors were encountered: