Skip to content

Allow to change icon for year select in calendar header #29515

Open
@de-don

Description

@de-don

Feature Description

Right now, icon for calendar year select is hardcoded in source code -

<svg class="mat-calendar-arrow" [class.mat-calendar-invert]="calendar.currentView !== 'month'"

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

Use Case

No response

Activity

added
featureThis issue represents a new feature or feature request rather than a bug or bug fix
needs triageThis issue needs to be triaged by the team
on Jul 30, 2024
added
P4A relatively minor issue that is not relevant to core functions
and removed
needs triageThis issue needs to be triaged by the team
on Jul 30, 2024
added a commit that references this issue on Aug 15, 2024
70bf632
GiftLanga

GiftLanga commented on Aug 15, 2024

@GiftLanga
Contributor

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

de-don

de-don commented on Aug 15, 2024

@de-don
Author

@GiftLanga yeah, it looks nice. Thanks :)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/datepickerfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @amysorto@de-don@GiftLanga

      Issue actions

        Allow to change icon for year select in calendar header · Issue #29515 · angular/components