Skip to content

feat(cdk/overlay): HTML id attributes in overlay elements #23234

Closed
@mifloma

Description

@mifloma

Feature Description

CDK Overlay component creates a set of div-Elements into the DOM. It would be much easier to write custom Positioning-Strategies or Scroll-Strategies if the div-Elements had HTML id attributes.

Use Case

I was trying to write a custom Scroll-Strategy for an overlay. My idea was to change some css properties on the overlay-div-Elements to customize scrolling behaviour. Its very difficult to find the overlay div-Elements in the DOM without having an id attribute. I had to search the elements by css-class-names.

If css-style manipulation is not the recommended way to write custom Scroll-Strategies, please close the issue.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/overlay

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions