-
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
Cover block: Unify dimensions panels #34008
Cover block: Unify dimensions panels #34008
Conversation
Size Change: -60 B (0%) Total Size: 1.03 MB
ℹ️ View Unchanged
|
The resizable component within the cover block coverts minimum height units to This makes sense since it's calculate the new value in based on the clientHeight of the resize element (in pixels). The Unit Control UI however doesn't check for unit changes in incoming values. cover-block-pixels.mp4I've started a PR to allow this: #34029 The Unit Control component itself is a new G2 component and therefore experimental. The tests also don't seem to be passing. Just documenting for now. If alternatives occur to me I'll round back here. |
When the block style attribute for min height is changed, the unit control needs to be told of the change in unit. This may occur when the resizable box handles in the cover block are dragged.
@aaronrobertshaw Thanks for the update in bfdfb8f This is a better approach by far for our purposes. I started at the lowest level and got stuck there 🤭 |
Removing minHeight and minHeight unit attrs
7f0884c
to
480d908
Compare
In the interests of avoiding duplicate labels before the release, here's a copy update to the existing Cover block dimensions panel label |
480d908
to
209dd1c
Compare
We can delay or close this if #34065 gets off the ground |
209dd1c
to
6341854
Compare
#34065 has been merged |
WIP
<ResizableCover />
to the minHeight block supports. Because the Resizable cover switches to px units automatically, we might have to update the support hooks to handle this. At the moment the sidebar unit controls UI don't reflect the switch to pixelsDescription
How has this been tested?
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).