Skip to content

Conversation

@R1shabh-Gupta
Copy link
Contributor

What?

See #71446

Fixes visual scrollbars appearing on the Accordion block’s header and toggle button.

Why?

When expanding or collapsing a full width Accordion block, rotated toggle buttons previously caused horizontal scrollbar, which was flagged for user experience and accessibility concerns. Recent feedback noted a vertical scrollbar regression after the initial fix, requiring adjustment to overflow handling.

How?

Applies overflow: hidden to the .accordion-content__toggle CSS selector. This ensures both horizontal and vertical overflow from the toggle button are suppressed. References prior discussion in PR #71446 and suggestion from recent review comments.

Testing Instructions

  1. Open a post or page in the editor.
  2. Insert an Accordion block.
  3. Set alignment to "Full width" in the toolbar.
  4. Save and view the frontend.
  5. Expand/collapse accordion header and verify no scrollbars appear.

Screenshots or screencast

Before

Before.mov

After

After.mov

@R1shabh-Gupta R1shabh-Gupta marked this pull request as ready for review September 3, 2025 10:42
@github-actions
Copy link

github-actions bot commented Sep 3, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: R1shabh-Gupta <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: mikachan <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Contributor

@t-hamano t-hamano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix 🙏

@t-hamano t-hamano added [Type] Bug An existing feature does not function as intended [Block] Accordion Affects the Accordion Block labels Sep 3, 2025
Copy link
Member

@mikachan mikachan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well, thank you! 🙇

@t-hamano t-hamano added the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label Sep 3, 2025
@github-actions github-actions bot removed the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label Sep 3, 2025
@t-hamano t-hamano merged commit f2002ae into WordPress:trunk Sep 3, 2025
89 of 93 checks passed
@github-actions github-actions bot added this to the Gutenberg 21.6 milestone Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Accordion Affects the Accordion Block [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants