-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
With Gutenberg 6.6, the pinned plugins menu icons are not scaled properly #17719
Comments
I don't understand how this could have regressed. Looking at 5.2 sans plugin, I see the following CSS: This is coming from here: http://moc.co/wp-content/plugins/dropit/scripts/sidebar/build/style.css?ver=1534242899 And if I toggle that off, the icons explode: I'm not suggesting this isn't something we should fix, it'd be nice to apply a max-width to SVGs there. But are you sure it's a regression in Gutenberg? |
So I noticed this as soon as I updated my blog to 6.6 and I'm pretty sure I didn't touch dropit in the meantime, I can debug deeper later though. |
I suspect buttons were flex aligned which also affects the size of their children and it's not the case anymore. |
Oh I know what it is now. On 5.2 without plugin, the markup is this:
On 5.2 with plugin 6.6 enabled, the markup is this:
So at some point, |
@youknowriad - I've been checking this out following the changes on #17228. Previous to this change:
We were passing down a Dashicon if icon was a string, or the icon object directly otherwise.{ isString( icon ) ? <Dashicon icon={ icon } ariaPressed={ ariaPressed } /> : icon }
Now we are always passing the icon (objec or string) to the Icon component, and Probably if we keep this logic and just change Dashicon with Icon, it will work as before: Did a fast test on web and mobile and it seems to work. cc @Tug |
I'm not certain that's the issue here. Since that plugin icon is always rendered with |
This change do solve the issue with the buttons though. I don't see other possible change on #17228 that could have triggered this problem - <Icon icon={ icon } />
+ { isString( icon ) ? <Icon icon={ icon } /> : icon } Maybe it could at least give some lights? |
ohhh, actually you're right @etoledom let's just restore the "if" then |
Try installing the dropit plugin. In previous versions the icon was showing properly, it Gutenberg 6.6, the icons are not scaled down to the button height.
Probably due to the buttons refactoring cc @jasmussen @talldan
The text was updated successfully, but these errors were encountered: