-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site Logo has two width controls (one within Dimensions, when in a Row block) #47979
Comments
I'm assuming you mean beta 1 for 6.2 rather than RC. Going to add this to the 6.2 board for consideration and want to alert @tellthemachines for thoughts here as I know you are doing a lot of work here! |
Yea, I've updated the issue.🤦♂️ For clarity, this doesn't happen in Beta 1, but does in Gutenberg. |
That's weird, I can see it in 6.2 Beta 1 too. It definitely makes sense for it to be there given that #45364 made it in!
I think the problem here is that it might not be clear what "width" does for children of Row. It's not meant to resize the block itself, but redefine the space it occupies inside the Row block. So for instance, if we wanted to have Site Logo on one side and a couple other blocks at the other end of the Row, we could do it by setting Site Logo width to "fill": I'm not sure how we can make this clearer in the UI for those controls 😅 but I do think it's useful for all children of Row/Stack blocks (and ultimately for all children of flex layout blocks in general) to have them. |
Ah, yea perhaps this clarification would help — cc @WordPress/gutenberg-design |
It may be tangential but I can't help wondering if we really need the Image Width setting. The overlap between it and Dimensions > Width is kind of confusing, both conceptually and practically. Personally I'd expect the image width to always respect whatever is set in Dimension > Width. Having both seems unnecessary?
For this use case, wrapping the Site Logo in a container seems more natural than fiddling with two separate width controls. Maybe that's just me? |
Yea, we don't need Image width and Width. It would be nice if the "width" control essentially worked like "Image width" does. |
Needing to wrap the block in a container to use width settings feels like it may be too advanced for some users? |
Description
Currently the Dimensions > Width control renders if the Site Logo block is within a Row block.
Eventually it may be useful migrating width settings to Dimensions (though this particular control would need to always be present, not dependent on the Row block layout. But in its current state, this control does not work for resizing the width of the uploaded image.
There's already a "Image width" control within the Site Logo block; we should rely only on that for the time being. Otherwise, there are competing controls, where only one works properly anyhow.
Note that this does not occur in Beta 1 — but with the Gutenberg trunk active.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
CleanShot.2023-02-10.at.14.00.51.mp4
Environment info
WP 6.2 Beta 1
Gutenberg trunk
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
The text was updated successfully, but these errors were encountered: