infor-design / enterprise-wc

Enterprise-grade web component library for the Infor Design System
Apache License 2.0
27 stars 26 forks source link

IdsMenuButton: 'ids-icon-button' class is being removed when replacing an icon #2800

Open jomcab opened 3 weeks ago

jomcab commented 3 weeks ago

Describe the bug 'ids-icon-button' css class is being removed when replacing an icon using .icon = "iconName" that results to icon

To Reproduce Steps to reproduce the behavior:

  1. Observe that the menu-button has 'ids-icon-button' class:

    image
  2. Run a javascript code to update the icon using .icon = "save"

  3. Notice that the icon will change to save but the 'ids-icon-button' class will be removed, and the look of icon has more spaces than before:

image

Version 1.1.0

infor-jake commented 3 weeks ago

Migrated bug to Jira - IDS-4659