Skip to content

Improve modal navigation with arrow up key to fully display previous element #2433

@dariasavinova

Description

@dariasavinova

Description

When navigating through the modal using the arrow up key, the previous element is not fully visible.
Instead, it's only partially displayed, which makes it difficult for users to see the entire content of the previous element.
This issue was first encountered on the Vue documentation site but is reproducible wherever DocSearch is embedded.

Steps to reproduce

  1. Go to playground
  2. Open the modal.
  3. Scroll down within the modal to a point where the previous element is partially visible or fully invisible.
  4. Use the arrow up key to navigate to the previous element.

Expected behavior

When navigating to the previous element using the arrow up key, the element should be fully visible within the modal.

Current behavior:
current-behaviour

Proposed solution:
solution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions