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

Align "None" is available for blocks when they have no other alignment options #35341

Closed
Mamaduka opened this issue Oct 5, 2021 · 0 comments · Fixed by #35822
Closed

Align "None" is available for blocks when they have no other alignment options #35341

Mamaduka opened this issue Oct 5, 2021 · 0 comments · Fixed by #35822
Assignees
Labels
[Feature] Blocks Overall functionality of blocks [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@Mamaduka
Copy link
Member

Mamaduka commented Oct 5, 2021

Description

It might be an edge case, so feel free to ignore this 😄 .

Align option "None" is available for a group block while other options are missing. I think if the only alignment option is "None," we shouldn't display alignment controls.

I discovered it while trying to debug #34010.

cc @ntsekouras

Step-by-step reproduction instructions

  1. Install and activate the "Blockbase" theme.
  2. Go to Site Editor > Template Parts > Footer.
  3. Select wrapper Group block.
  4. See that only align "None" option is available.

Screenshots, screen recording, code snippet

CleanShot 2021-10-05 at 12 54 41

Environment info

  • WordPress 5.8.1, Gutenberg 11.6

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@Mamaduka Mamaduka added [Feature] Blocks Overall functionality of blocks [Type] Bug An existing feature does not function as intended labels Oct 5, 2021
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants