carbon-icons-svelte
carbon-icons-svelte copied to clipboard
Viewbox
I am often fighting positioning of icons. I have noticed this library has a viewbox always set to 0 0 32 32 (https://github.com/carbon-design-system/carbon-icons-svelte/blob/master/src/template.ts#L19) but some icons have a svg with 0 0 16 16.
Examples of these are status icons like circle-stroke, circle-fill, caution, etc.
It is problematic because the icons are hard to center like this.
Correct example of such icon svg straight from https://carbondesignsystem.com/guidelines/icons/library/
Incorrect example of svelte icon