Skip to content

feat(MatTimepicker): support a panelClass or panelWidth input #32706

@nirmal

Description

@nirmal

Feature Description

Similar to panelClass attribute on https://material.angular.dev/components/select/api#MatSelect

The width of the overlay is hard set here based on the triggering element:

overlayRef.updateSize({width: input.getOverlayOrigin().nativeElement.offsetWidth});

Use Case

My use case is to adjust the width of the panel to be at least min-content so a narrow element used as a trigger does not cause the list of time options to also be very narrow.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions