carbon-icons-svelte icon indicating copy to clipboard operation
carbon-icons-svelte copied to clipboard

Viewbox

Open tmarsik42 opened this issue 2 years ago • 0 comments

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/ Snímek obrazovky 2023-05-24 v 15 04 20

Incorrect example of svelte icon Snímek obrazovky 2023-05-24 v 15 06 40

tmarsik42 avatar May 24 '23 13:05 tmarsik42