WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.57k stars 4.22k forks source link

Position Toggle Button Not Taking Full Height #67401

Open SainathPoojary opened 3 days ago

SainathPoojary commented 3 days ago

Description

In the WordPress block editor, the “Position” toggle button options in the Group block settings do not take up the full height of the settings panel. This results in a visual inconsistency, as users must scroll to view the full options.

Related Trac ticket: https://core.trac.wordpress.org/ticket/62605

Step-by-step reproduction instructions

  1. Open the WordPress block editor.
  2. Add a “Group” block to the page.
  3. Select the “Group” block.
  4. In the block settings panel on the right, locate the “Position” toggle button.
  5. Observe that the “Position” toggle options do not extend to fill the full height of the settings panel.
  6. Attempt to interact with the toggle options

Screenshots, screen recording, code snippet

https://github.com/user-attachments/assets/b66e31d9-5c2f-4dc8-80f5-702a8030ce67

Environment info

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

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

Please confirm which theme type you used for testing.

Infinite-Null commented 3 days ago

Hi @SainathPoojary,

Thank you for pointing this out. I was able to reproduce the issue, and I agree that this could be inconvenient for users, specially when they have selected sticky as the position.

Supplemental Artifacts

https://github.com/user-attachments/assets/2f948513-3773-46f5-810a-5c27cd4698a7

Environment

Mayank-Tripathi32 commented 3 days ago

Hello @SainathPoojary @Infinite-Null, I believe this issue stems from the lack of directional opening support in the CustomSelectControl component. I am currently exploring whether this functionality is supported in Ariakit. If it’s not, I will work on implementing it.