You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Separator: allow changing the thickness / height #20758
I think there are two different things here. Height makes sense to follow the spacer and cover treatment, with the resize handle at the bottom. Thickness is something that seems specific to this block.
Modified BoxControl, separate top/bottom margins without drag resizing
Separate top and bottom margin attributes
Shouldn't require a deprecation when possible future implementation of margins block support lands
Simplifies the separator edit component greatly by not using the ResizableBox
Updates the BoxControl so that arbitrary sides can be opted out of
Updated BoxControl should help margins block support later down the road
The BoxControl used in the separator controls is configured to allow only top/bottom margins to be set
Box visualizer provides comparable visual feedback to the ResizableBox
Also fixes all the errors spat out in console when using a drag gesture within the box control's unit control
Native controls have been updated and are two simple UnitControl fields
Hopefully that helps give some extra context to the PR when reviewing. I think the last option is definitely the best option now and with a view to the future.
Activity
apeatling commentedon Jan 21, 2021
I think it would be good to explore using the padding control to manage this.
mtias commentedon Jan 21, 2021
I think there are two different things here. Height makes sense to follow the spacer and cover treatment, with the resize handle at the bottom. Thickness is something that seems specific to this block.
apeatling commentedon Jan 21, 2021
This is the thought @aaronrobertshaw and I came to when chatting yesterday, going to concentrate on height first using the resize handle.
apeatling commentedon Mar 18, 2021
Latest #29363
aaronrobertshaw commentedon Mar 25, 2021
The latest PR addressing separator height is ready for some extra eyes and testing.
A few approaches have been trialled for this so I'll give a brief recap below.
First Approach: #28409
Single height attribute with drag resizing
ResizableBoxto allow drag resizing on web<hr>in a wrapper to includeResizableBoxas a sibling due to issues with how the separator block is being renderedResizableBoxand used a simpleUnitControlfieldSecond Approach: #28451
Adding margins to spacing block support and opt in for separator block
Third Approach: #28688
Separate top/bottom margin attributes and drag resizing
UnitControlfields to set top/bottom marginsFourth Approach (preferred): #29363
Modified BoxControl, separate top/bottom margins without drag resizing
ResizableBoxBoxControlso that arbitrary sides can be opted out ofBoxControlshould help margins block support later down the roadBoxControlused in the separator controls is configured to allow only top/bottom margins to be setResizableBoxUnitControlfieldsHopefully that helps give some extra context to the PR when reviewing. I think the last option is definitely the best option now and with a view to the future.
aaronrobertshaw commentedon Jan 16, 2022
The last PR attempting to address this has been closed in favour of leveraging block gap support and the spacer block. Should we close this issue as well or is the functionality still desired?
apeatling commentedon Jan 18, 2022
Let's close this because it seems spacer block is the direction going forward.