Skip to content

Conversation

lekhmanrus
Copy link
Contributor

  • Add optional icons (SortHeaderIcons) configuration object to MAT_SORT_DEFAULT_OPTIONS for customizing the icons used by mat-sort-header
  • Add matSortIconsTemplate template for the sort icons to [mat-sort-header]. { isDisabled: boolean; direction: 'asc' | 'desc' | ''; isSorted: boolean } passed as context.

Close #32002, #30563

@lekhmanrus lekhmanrus requested a review from a team as a code owner October 7, 2025 19:39
@lekhmanrus lekhmanrus requested review from adolgachev and ok7sai and removed request for a team October 7, 2025 19:39
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: material/sort labels Oct 7, 2025
@lekhmanrus lekhmanrus force-pushed the feat/32002/header-icon-customization branch from 5cc7856 to 3353be3 Compare October 7, 2025 20:40
@crisbeto
Copy link
Member

crisbeto commented Oct 8, 2025

I was actually thinking to just let users project in their own icon: #32016

@crisbeto crisbeto closed this Oct 8, 2025
@lekhmanrus
Copy link
Contributor Author

Thanks @crisbeto. That makes sense, allowing users to project their own icon seems like a cleaner approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/sort detected: feature PR contains a feature commit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(mat-sort-header): Proposal — Add global token for mat-sort-header icon customization
2 participants