Skip to content
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

Add Transformation from Separator to Spacer #65492

Closed
MadtownLems opened this issue Sep 19, 2024 · 4 comments
Closed

Add Transformation from Separator to Spacer #65492

MadtownLems opened this issue Sep 19, 2024 · 4 comments
Labels
[Block] Separator Affects the Separator Block [Block] Spacer Affects the Spacer Block Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Enhancement A suggestion for improvement.

Comments

@MadtownLems
Copy link

What problem does this address?

We are still dealing with lots of old content being converted into the Block Editor, and as white space was hard to control in the Classic Editor, people have made liberal use of hr's, which get turned into separator blocks in the conversion process. It has become very commonplace for us to replace them with Separator blocks and just rely on whitespace for separation between content sections, which gives a much more modern look.

What is your proposed solution?

Add a transform from the Separator block to the Spacer block

@MadtownLems MadtownLems added the [Type] Enhancement A suggestion for improvement. label Sep 19, 2024
@skorasaurus skorasaurus added [Block] Separator Affects the Separator Block [Block] Spacer Affects the Spacer Block labels Sep 19, 2024
@rudrakshi-gupta
Copy link
Contributor

Hey, I would like to work on this issue.

rudrakshi-gupta pushed a commit to rudrakshi-gupta/gutenberg that referenced this issue Oct 18, 2024
talldan added a commit that referenced this issue Oct 24, 2024
* Add a transform from the Separator block to the Spacer block

* Add a transform from the Separator block to the Spacer block

Feat #65492

* Add transformation from spacer to separator

- Remove the default height of 50px after transformation to default 100px that of Spacer
- Update the transform of blocks so that it retains anchor attribute

* Add new transformation block titles in Test

* Add new transformation block titles in Test

* Add new transformation block titles in Test and resolve linting problem

* Add new transformation block titles in Test and resolve linting problem

* Update test suite snapshot for test [mobile] to pass successfully

---------

Co-authored-by: talldan <talldanwp@git.wordpress.org>
Co-authored-by: rudrakshi-gupta <rudrakshigupta@git.wordpress.org>
@mtias mtias added the Good First Issue An issue that's suitable for someone looking to contribute for the first time label Oct 27, 2024
karthick-murugan pushed a commit to karthick-murugan/gutenberg that referenced this issue Nov 13, 2024
* Add a transform from the Separator block to the Spacer block

* Add a transform from the Separator block to the Spacer block

Feat WordPress#65492

* Add transformation from spacer to separator

- Remove the default height of 50px after transformation to default 100px that of Spacer
- Update the transform of blocks so that it retains anchor attribute

* Add new transformation block titles in Test

* Add new transformation block titles in Test

* Add new transformation block titles in Test and resolve linting problem

* Add new transformation block titles in Test and resolve linting problem

* Update test suite snapshot for test [mobile] to pass successfully

---------

Co-authored-by: talldan <talldanwp@git.wordpress.org>
Co-authored-by: rudrakshi-gupta <rudrakshigupta@git.wordpress.org>
@Antrikshgwal
Copy link

Hey @mtias
Can i work on this issue ? if it's still unresolved

@talldan
Copy link
Contributor

talldan commented Dec 23, 2024

@Antrikshgwal I think this was already implemented in #66230.

@talldan talldan closed this as completed Dec 23, 2024
@MadtownLems
Copy link
Author

@Antrikshgwal I think this was already implemented in #66230.

I think the confusion here stems from the fact that @rudrakshi-gupta commented here that he'd like to work on the issue, and submitted a PR to fix it 3 days later without explicitly tagging that the PR is intended to fix this issue. In the future, it would be great to do that so that a) this issue can get properly updated and tracked, and b) whoever first submitted the issue also gets props ;)

Looking forward to having this transformation available on our sites - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Separator Affects the Separator Block [Block] Spacer Affects the Spacer Block Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

6 participants