-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Search in page - use hidden=until-found #161
Comments
corentin-gautier
pushed a commit
to corentin-gautier/Accordion-Blocks
that referenced
this issue
Jul 31, 2022
corentin-gautier
pushed a commit
to corentin-gautier/Accordion-Blocks
that referenced
this issue
Jul 31, 2022
add alignment support - Fix philbuchanan#103 use hidden until-found - Fix philbuchanan#161 Remove the use of children - Maybe Fix philbuchanan#117 add resize event dispatch - Fix philbuchanan#59 revert removal of the button option
corentin-gautier
pushed a commit
to corentin-gautier/Accordion-Blocks
that referenced
this issue
Jul 31, 2022
add alignment support - Fix philbuchanan#103 use hidden until-found - Fix philbuchanan#161 Remove the use of children - Maybe Fix philbuchanan#117 add resize event dispatch - Fix philbuchanan#59 revert removal of the button option use <accordion-item> custom element add js documentation requestIdleCallback before window scroll remove use of "window."
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem: Content in accordions can't be found by searching within the page (CTRL + F).
I just read Making collapsed content accessible with hidden=until-found at Chrome Developers where the suggested solution is to use
hidden=until-found
. This works in Chromium derivates as well as in a current Firefox version. The article suggests usingif (!(‘onbeforematch' in document.body)) { // expand all hidden content }
if an even broader browser support is aimed for.It would be great if this would be supported by this very useful plugin.
Maybe also interesting: The article says "In addition to allowing find-in-page search on hidden regions, this feature will allow this hidden content to be accessible to search engines. Google Search will even form links that scroll to the revealed fragment.". I'm not sure this is a matter, but it seems to be true that Google results currently don't show the context if matched in a hidden accordion.
The text was updated successfully, but these errors were encountered: