Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
proof of concept at getting snap to grid #16748
This is an early stage draft PR to see how can we implement snap to grid into Gutenberg.
I will follow this PR with a RFC later that have all the technical details of how will snapping work, possible behaviors and problems.
for now this PR only adds:
the main things I thing we should consider is defining:
future things we should consider are:
this is a live prototype I made that doesn't use Gutenberg components, vanilla react, it should be a good basis to see how does snapping work
@mapk I'm surprised that this is the first time I'm seeing that issue
youknowriad left a comment
How do you think this fits with the general idea of adding specific "grid lines" for the wide and full alignments?
How can we make it possible to resize to the "wide" grid line and automatically switch the block alignment to "wide" in that case?...