Skip to content

Ctrl+F searches collapsed nav items with no user feedback #580

@shainaraskas

Description

@shainaraskas

Describe the bug

When you ctrl+f for a common word, (e.g. data), navigating through the results using enter looks like it's not working, and there are tons of results.

What I suspect is happening, is it's detecting all of the instances of the word in the sidebar, but because the sidebar is collapsed, you can't see it navigating through the options.

The reason I think this is because when I expand a node that I know contains the word after initiating ctrl+f and hit enter, the number doesn't increase but the word becomes highlighted. also, if I keep hitting enter, I'll finally see an instance be selected in the sidebar, but it will disappear (into collapsed child items) shortly after

Some collapsed elements should be searchable: e.g. unselected tabs and collapsed dropdowns

Expected behavior

  • only text currently visible in nav is searched
  • all content of the current article is searched (including unselected tabs and collapsed dropdowns)

Steps to reproduce

ctrl+f for the word data

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions