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

Icons misplaced when adjusting font size globally #3686

Open
seakrebel opened this issue Apr 26, 2024 · 1 comment
Open

Icons misplaced when adjusting font size globally #3686

seakrebel opened this issue Apr 26, 2024 · 1 comment
Labels
Bug Good first issue Good Issue for your first contribution or experimenting with Shopware

Comments

@seakrebel
Copy link

PHP Version

8.3

Shopware Version

6.6.1.1

Expected behaviour

Screenshot 2024-04-26 at 09 18 06@2x

Actual behaviour

Screenshot 2024-04-26 at 09 17 20@2x

How to reproduce

If you change font size globally by changing bootstrap scss variables, icons are not optimized for such behavior and will be misplaced. However if you implement the free bootstrap-icons library from https://icons.getbootstrap.com/ and override

{% sw_icon 'plus'  style {'size': 'xs', 'pack':'solid'} %}

with

<i class="bi bi-plus-lg"></i>

it looks perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Good first issue Good Issue for your first contribution or experimenting with Shopware
Projects
None yet
Development

No branches or pull requests

2 participants