cengage / react-magma

https://react-magma.cengage.com
MIT License
21 stars 13 forks source link

Dropdown > Expandable Menu Items > Icon missing at parent level #1573

Open chris-cedrone-cengage opened 1 week ago

chris-cedrone-cengage commented 1 week ago

Describe the bug

Initially from: https://github.com/cengage/react-magma/issues/1014

-- 1.5 If you include icons on the parent level, the children do not also have icons.

235749135-982996c9-982e-413d-a52d-cd9865094837

To Reproduce Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/p/sandbox/dtffrn?file=%2Fexample.tsx
  2. In the code, see Line 54
  3. There's an error having an icon at this level

Expected behavior At the moment, the DropdownExpandableMenuListItem as a parent doesn't allow for this prop to be used and it should be available. If there are children to this parent with an icon, the children do not have the allowance for the same prop.

Screenshots

Bug