Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewbox #162

Open
tmarsik42 opened this issue May 24, 2023 · 0 comments
Open

Viewbox #162

tmarsik42 opened this issue May 24, 2023 · 0 comments

Comments

@tmarsik42
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant