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
This would allow us to more easily reuse our existing icons, and would also be more flexible with future icons.
Describe alternatives you've considered
There are tools that allows us to merge the paths, but it's a bit tedious and the technical implementation of multiline-paths is seemingly fairly straight forward (see code snippet below)
Additional context
This is obviously not a proper implementation, but more a proof of concept. Stuff like pathProps would need to be altered etc, but the below code works and allows me to pass in multiple paths:
Essentially we would need to change this line
Is your feature request related to a problem? Please describe.
Several of our custom svg icons are defined with multiple
<path>
definitions, which makes them incompatible with eds'<Icon />
component.Describe the solution you'd like
I would like EDS to support icon's having multiple paths, essentially changing the signature of
IconData
to something like this:This would allow us to more easily reuse our existing icons, and would also be more flexible with future icons.
Describe alternatives you've considered
There are tools that allows us to merge the paths, but it's a bit tedious and the technical implementation of multiline-paths is seemingly fairly straight forward (see code snippet below)
Additional context
This is obviously not a proper implementation, but more a proof of concept. Stuff like pathProps would need to be altered etc, but the below code works and allows me to pass in multiple paths:
Essentially we would need to change this line
to something like this:
which would allow us to pass in svg-data more akin to this:
The text was updated successfully, but these errors were encountered: