-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Labels
[Block] AccordionAffects the Accordion BlockAffects the Accordion Block[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
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
- Create an accordion and add text to accordion panel
- View the post
- Open the browser search with
cmd+F - Search for a word that is in the text in the panel
Screenshots, screen recording, code snippet
As you can see, you cannot find the text:

It works in the details block:

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
luminuuR1shabh-Gupta
Metadata
Metadata
Assignees
Labels
[Block] AccordionAffects the Accordion BlockAffects the Accordion Block[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Projects
Status
📥 Todo
