components icon indicating copy to clipboard operation
components copied to clipboard

Allow to change icon for year select in calendar header

Open de-don opened this issue 1 year ago • 2 comments
trafficstars

Feature Description

Right now, icon for calendar year select is hardcoded in source code - https://github.com/angular/components/blob/fd47a0e60dd9ab50d9f923713ca60a7fd21ccc16/src/material/datepicker/calendar-header.html#L11

Please, add ability to override it (maybe via icon registry), because buttons below uses matIcon

Use Case

No response

de-don avatar Jul 30 '24 08:07 de-don

@de-don I linked a PR. This is how you would pass your custom icon. Is this how you expect it to work? image

GiftLanga avatar Aug 15 '24 12:08 GiftLanga

@GiftLanga yeah, it looks nice. Thanks :)

But I think we can do it easier, like by default use mat-icon in header.

de-don avatar Aug 15 '24 13:08 de-don