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.

subheader: sticky subheaders have incorrect styles in browsers that support position: sticky #10285

Open
@kylemacfarlane

Description

@kylemacfarlane

When you scroll sticky subheaders in a browser that doesn't support position sticky (e.g. Chrome <= 55) there will be a shadow underneath. However on browsers that do support it (Chrome >= 56, Firefox, etc) there is no shadow.

The bug is evident in the demos: https://material.angularjs.org/HEAD/demo/subheader

The problem seems to be that when sticky support is detected the sticky-state attribute is never added because setupSticky and thus onScroll aren't called.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions