Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Accordion: Text in a closed accordion panel cannot be found via the browser search | GoodFirstPicks

Accordion: Text in a closed accordion panel cannot be found via the browser search

WordPress/gutenberg 12 comments 1mo ago
View on GitHub
lowopenScope: clearSkill match: maybeWordPressJavaScriptReact

Why this is a good first issue

The issue requires adding a browser-supported attribute to fix search functionality in accordion panels.

AI Summary

The issue involves adding the `hidden='until-found'` attribute to accordion panel content to enable browser search functionality. The solution is straightforward but requires ensuring compatibility across major browsers, which is now feasible as Safari has added support.

Issue Description

Description

This issue came up in the WordPress Online Meetup DACH.

Content in a closed accordion panel is cannot be found via the browser search. It does work in the details block, which opens automatically.

It might make sense to add hidden="until-found" attribute: https://developer.chrome.com/docs/css-ui/hidden-until-found

Step-by-step reproduction instructions

  1. Create an accordion and add text to accordion panel
  2. View the post
  3. Open the browser search with cmd+F
  4. Search for a word that is in the text in the panel

Screenshots, screen recording, code snippet

Editor Image

As you can see, you cannot find the text: Image


It works in the details block: Image

Environment info

No response

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

GitHub Labels

[Type] Bug[Focus] Accessibility (a11y)[Status] In Progress[Block] Accordion

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Risk Flags

  • browser compatibility
Loading labels...

Details

Points10 pts
Difficultylow
Scopeclear
Skill Matchmaybe
Test Focusedno