Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

docs: content pane should scroll to top when left menu item is clicked #11669

@gaurav5430

Description

@gaurav5430

Bug, enhancement request, or proposal:

This is a bug on the docs website.
https://material.angularjs.org

CodePen and steps to reproduce the issue:

CodePen Demo which demonstrates the issue:

There is no code pen, as this issue is reproducible in the docs website.

Detailed Reproduction Steps:

  1. Go to https://material.angularjs.org
  2. Open the Theming panel.
  3. Click on "Introduction and Terms"
  4. Scroll content to bottom on the right panel.
  5. Click on "Declarative Syntax" on the sidebar menu.
  6. The scrollbar in the content panel stays at the bottom.

What is the expected behavior?

The scroll bar should reset to 0.

What is the current behavior?

The scroll bar stays at the same place as it was before selecting the new menu item

What is the use-case or motivation for changing an existing behavior?

It is frustrating to scroll to top every time I select a new menu item.

Which versions of AngularJS, Material, OS, and browsers are affected?

Is there anything else we should know? Stack Traces, Screenshots, etc.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions