-
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
Spacer Block: Add custom unit support for height control #22956
Comments
@ItsJonQ looks like we could just apply the work from the Cover block height resize here. |
@iamtakashi Oo! We can do that 💪 Also, we can add |
Yay, thank you in advance! |
Just a heads up, updates from this PR will make adding unit support for spacer (much) easier 👍 |
Fun update! While tinkering with Spacer... I felt like there should be some visual feedback on drag changes. After a couple of experiments, I have something that looks like this: It's a tooltip that floats on top of your mouse cursor :) Bonus: This visual feedback component works independently of the |
Oh boy! cc'ing @iamtakashi. How's this? :) Note: I had to do some funky stuff with the Double note: Noticing the inconsistencies between the Spacer resize experience and the Cover resize experience (which is a bit hairy, code wise). Would be nice to consolidate those. |
@ItsJonQ Sorry for missing the ping. (I read the last update in the email notification that came before the ping was added :) )
I've noticed the issue (the persistent unit with resizing handle) in Cover block the other day. Flipping back to |
I don't think there's a way to accurately accommodate non For example, if the unit is set to Dragging the handle down If that experience is okay, then that may be something we could try. The other tricky thing is |
Makes sense. I don't want that to hold this up, and flipping back to |
Is there anything pending here @iamtakashi @ItsJonQ? :) |
Any chance we can pick this back up? I think this would be helpful for block patterns in Twenty Twenty-One (WordPress/twentytwentyone#370) |
Just ran into needing this one. It would really benefit responsive design as well. |
Does someone have a little time to pick this up again? Now that we use custom units for just about all other spacing tools, it seems really weird to disallow them for the spacer block. |
Fixed in #36186 |
Just like the Cover block, it'd be nice to add custom unit support for Spacer height control.
Especially, the viewport relative units would be useful to accommodate different viewport sizes. In addition to
vw
andvh
, it would be really nice if it also supportsvmin
andvmax
as well.The text was updated successfully, but these errors were encountered: