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

Remove MenuItemIcon component in the Sidebar #25333

Closed
Tracked by #25331
yannbf opened this issue Dec 27, 2023 · 3 comments · Fixed by #25587
Closed
Tracked by #25331

Remove MenuItemIcon component in the Sidebar #25333

yannbf opened this issue Dec 27, 2023 · 3 comments · Fixed by #25587
Assignees

Comments

@yannbf
Copy link
Member

yannbf commented Dec 27, 2023

Location:

export const MenuItemIcon = ({ icon, imgSrc }: ListItemIconProps) => {

@yannbf
Copy link
Member Author

yannbf commented Jan 5, 2024

This one is tricky and I need your help @cdedreuille.

the MenuItemIcon is deprecated and it asks users to use Icons from @storybook/components instead.
However, Icons seem to also be deprecated and it asks users to use the @storybook/icons package instead.

The other tricky part is that the MenuItemIcon component has a specific order of either using an Icon, an Img or a Placeholder element. What's the correct equivalent for MenuItemIcon then?

@cdedreuille
Copy link
Contributor

We should only use icons from @storybook/icons going forward. I need to look more closely to this one to see how to best handle it.

@cdedreuille
Copy link
Contributor

I drafted a PR. The component was not used anywhere as I believe we just changed the way we do it and forgot to remove this old component. I removed it and tested it. I could not find any bug but it would be great to have an extra pair of eyes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants