Directory

Add possibility to add custom block alignments · Issue #60937 · WordPress/gutenberg · GitHub
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 possibility to add custom block alignments #60937

Closed
Lovor01 opened this issue Apr 21, 2024 · 1 comment
Closed

Add possibility to add custom block alignments #60937

Lovor01 opened this issue Apr 21, 2024 · 1 comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement.

Comments

@Lovor01
Copy link
Contributor

Lovor01 commented Apr 21, 2024

Add possibility to add custom block alignments

I would like to have a feature that my block can be constrained to content width (like it normally is for blocks), but also to fit content inside the block, in which case it may be smaller or bigger than standard sizes. Most logical place for me would be to add another custom alignment in alignment control toolbar which would have a label "fit block content" and custom icon

What is your proposed solution?

Add some mechanism (possibly hook or slot) to enable adding custom alignment control.

@Lovor01 Lovor01 added the [Type] Enhancement A suggestion for improvement. label Apr 21, 2024
@talldan talldan added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Apr 22, 2024
@talldan
Copy link
Contributor

talldan commented Apr 22, 2024

There's an open issue for this (#27629), so I'll close this one as a duplicate.

@talldan talldan closed this as completed Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants