Skip to content

Conversation

@renatho
Copy link
Contributor

@renatho renatho commented Nov 22, 2023

What?

Fixes #56448

Why?

While working on Sensei LMS, we realized that there's a new issue with the DropdownMenu component. Here is the issue: Automattic/sensei#7308

It seems it started happening after this change: https://github.com/WordPress/gutenberg/pull/43574/files#r1240745574.

I'm not sure if there were additional styles setting the svg size at some point, but if there were, they are no longer present.

How?

This PR adds back that properties with the svg size.

Testing Instructions

  1. Use the DropdownMenu component with the controls prop. You can use the example from https://developer.wordpress.org/block-editor/reference-guides/components/dropdown-menu/#usage-2.
  2. Check that the icons are now working properly.

Screenshots or screencast

Screenshot 2023-11-22 at 16 01 10

@renatho renatho requested a review from ajitbohra as a code owner November 22, 2023 19:01
@apeatling apeatling added [Feature] UI Components Impacts or related to the UI component system [Type] Bug An existing feature does not function as intended Needs Design Feedback Needs general design feedback. labels Nov 30, 2023
@mirka mirka added [Package] Components /packages/components and removed Needs Design Feedback Needs general design feedback. [Feature] UI Components Impacts or related to the UI component system labels Dec 15, 2023
@mirka mirka requested a review from a team December 15, 2023 11:30
@ciampo
Copy link
Contributor

ciampo commented Dec 19, 2023

Left a comment in the original issue in case we could spot the deeper reason why the SVG icon is not receiving a size.

@mirka mirka added the [Status] Needs More Info Follow-up required in order to be actionable. label Dec 20, 2023
@ciampo
Copy link
Contributor

ciampo commented Dec 22, 2023

Closing as per the conversation in #56448

@ciampo ciampo closed this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Components /packages/components [Status] Needs More Info Follow-up required in order to be actionable. [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backward compatibility issue with SVG icons on DropdownMenu component

4 participants