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 Left, Right, and Full Width Alignment Options to Code Block #66960

Open
dhruvikpatel18 opened this issue Nov 13, 2024 · 2 comments · May be fixed by #66961
Open

Add Left, Right, and Full Width Alignment Options to Code Block #66960

dhruvikpatel18 opened this issue Nov 13, 2024 · 2 comments · May be fixed by #66961
Labels
[Block] Code Affects the Code Block [Type] Enhancement A suggestion for improvement.

Comments

@dhruvikpatel18
Copy link

What problem does this address?

The Code Block block currently only offers alignment options for None and Wide, limiting flexibility for users who want more control over the block’s placement in their content. This makes it harder to align the block to the left, right, or full width, similar to other default WordPress blocks.

What is your proposed solution?

Add additional alignment options (Left, Right, Full Width) to the Code Block block to provide more flexibility in layout customization, ensuring consistency with other default WordPress blocks and improving the overall user experience.

Image

@dhruvikpatel18 dhruvikpatel18 added the [Type] Enhancement A suggestion for improvement. label Nov 13, 2024
@Mamaduka Mamaduka added the [Block] Code Affects the Code Block label Nov 13, 2024
@Mamaduka
Copy link
Member

I'm unsure how useful these settings will be for the Code block.

@richtabor, any thoughts since you introduced support for the "Wide" alignment (#50710)?

@Kallyan01
Copy link

One can easily use layout blocks to do such adjustments if needed , adding separate alignments for code block seems not useful enough !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Code Affects the Code Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants