Closed MarcinMr closed 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?
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
_menu-item.twig
template was updated to make theicon_after
prop work as expected_menu-item.scss
was updated to remove unnecessary grid gap at the end of the menu itemicon_after
examplesHow 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.