Repository navigation
Conversation
|
Size Change: +677 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
a4f45be to
e35e77d
Compare
|
I also pushed a change to show the spacing preset name as the label rather than the slug - hope you don't mind |
|
Not at all, thanks! |
- Use dashed background to represent the spacing. - Display value in tooltip.
d195aee to
d88e89a
Compare
|
Still in progress @mtias or can I give this a review? |
|
@apeatling go for it, I think some stuff broke a bit after the rebase |
apeatling
left a comment
There was a problem hiding this comment.
Things don't seem too broken from a first test. The visualization is still present, and it worked fine testing in Safari.
A couple of things I noticed:
- There's a z-index issue as noted. The block toolbar is under the visualization.
- When margin gets to zero it goes inside of the block inserter area when a group block is empty.
- Likely unrelated to this PR, but when I drag up and down to change padding values in the sidebar, if I hover over the margin input box while dragging padding, the visualizer switches to margin.
|
|
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
Closing this as very difficult to rebase, and largely superceded by the visualier rewrite in #59227; hooks/margin.js and padding.js gone. |

This updates the design of the overlay when manipulating margin and padding. It uses a striped background and blend modes to try to keep a visible representation over multiple background situations. It also introduces tooltip feedback representing both discrete values and space presets.
Screen.Recording.2022-10-17.at.17.34.05.mov
Notes: