-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
When dropdown menu contains SVG icons, it used to work well. But now it's not setting the SVG width and height, so depending on the svg it's broken.
Step-by-step reproduction instructions
- Use the
DropdownMenucomponent with thecontrolsprop. You can use the example from https://developer.wordpress.org/block-editor/reference-guides/components/dropdown-menu/#usage-2. - Check that the icons are broken when rendering.
Screenshots, screen recording, code snippet
Before (when it used to work - tested in tag v16.0.0):

(This screenshot is from Sensei. If you test it there you will see it a little different - big icons. The reason is that I removed other related styles we have in Sensei to have a more generic scenario)
Environment info
- WordPress 6.4 / Gutenberg 17.1.0.
- Chrome
- OSX
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
