boltdesignsystem / bolt

The Bolt Design System provides robust Twig and Web Component-powered UI components, reusable visual styles, and powerful tooling to help developers, designers, and content authors build, maintain, and scale best of class digital experiences.
https://boltdesignsystem.com
MIT License
292 stars 45 forks source link

DS-902: Icon in the menu comp doesn't display in proper place #2586

Closed MarcinMr closed 1 year ago

MarcinMr commented 1 year ago

Jira

https://pegadigitalit.atlassian.net/browse/DS-902

Summary

When the icon_after prop is used, the icon displays after the menu's text.

Details

How to test

Pull the branch. Go to pattern-lab/?p=components-menu-use-case-icons and confirm that icons display properly before and after the text.

Release notes

The bug in the menu component was fixed to make the icon display properly after the menu's text.

MarcinMr commented 1 year ago

The only thing I'm wondering is which example is better for displaying the icon_after variant? Should the icon be aligned to the right like in the menu item 3 or it should stuck to the text like in the menu item 2?

icon after examples