20,029 questions
0 votes
1 answer
41 views
Angular Material: Programmatically setting MatSort does not update UI sort arrow
I'm working with an Angular Material table (mat-table) that has sorting enabled via matSort. Sorting works perfectly when I click on the column headers (mat-sort-header). Now, I want to trigger the ...
0 votes
2 answers
101 views
How can I implement a FormArray of FormGroups?
I have a Reactive Form in an Angular 21 application, and the form requires an array of a certain sub-form. (In my case the sub-form(s) define "filters" on a search.) The documentation on ...
0 votes
0 answers
50 views
Angular 19 Jasmine Test HighContrastModeDetector Error [closed]
We have an enterprise Angular application. It was on v13 and I have upgraded it to v19. The Jasmine tests are okay on v13 but it has error on v19. I get the error shown in the screenshot. I cannot ...
-3 votes
0 answers
24 views
which angular material version to install with the angular core 14.2.10 [closed]
this is my dependencies "@angular/animations": "^14.2.10", "@angular/common": "^14.2.10", "@angular/compiler": "^14.2.10", "@angular/...
1 vote
0 answers
55 views
Problems using multiple themes after upgrade of Angular Material from v16 to v18
In my application I use multiple themes (blue, red, yellow). Each theme is defined in a separate SCSS file. In the HTML pages I use a div tag surrounding everything which has a class for the selected ...
0 votes
0 answers
52 views
Angular canDeactivate (Unsaved Changes Warning) works with route navigation but not inside custom slideout panel
I’m working on an Angular v15+ app that uses a custom slideout panel system for showing forms. We’re trying to show an “unsaved changes” confirmation popup when the user closes the slideout, similar ...
2 votes
1 answer
68 views
How to control height/size of the each dropdown on mat-option using system tokens - md3/angular20
I've been using newest Angular Material in Angular 20. Trying to control stuff using mat.*-overrides but I can't find the option to change height of each mat-option inside of the form-field inside the ...
2 votes
1 answer
84 views
Override overall angular material styles for h1, h2, p, a and so on
Is it possible to override Angular Material styles for HTML elements like h1, h2, p, a, etc.? "@angular/material": "^20.2.8" is used. I try to override --mat-sys-* variables like: -...
4 votes
1 answer
155 views
Mat dialogs are not opening when devtools are in open
I'm using Angular v19 and I recently updated my Chrome version to be the latest. Now if my dev tools is open, then matdialog does not open; only when I change my screen resolution does it work (open). ...
0 votes
0 answers
51 views
Angular Material mat-form-field label misaligned with prefix icon on initial render
I'm using Angular Material's mat-form-field with appearance="outline" and a prefix icon (matPrefix). On initial render, when the input is empty, the label appears too close to the prefix ...
0 votes
0 answers
99 views
Customize Angular Material Components using mixins to fit my UI
We (my team) recently upgraded our Angular to Version 15, and we have had many problems due to MDC- changes. My work is to upgrade our components library to be MDC based. I noticed all the mixins ...
1 vote
1 answer
130 views
mat-select option stays open after click (blur not triggered?)
I’m writing end-to-end tests with Playwright for an Angular Material 14 app. The page has multiple mat-select. When I interact with the dropdown manually in the browser: I click on the select box. A ...
0 votes
0 answers
36 views
How to animate each MatListItem on mouseenter in angular 20?
i have a comment component with a mat-list component from material and inside it many mat-item-list so for each mat-list-item component i want to listen event like mouseenter and do something when ...
1 vote
1 answer
88 views
How do I update/add table column headers to Angular Material table?
I am trying to updated the current table headers and add new column headers as well. The issue is when I change the columns to display in the typescript the data for each column disappears. For ...
0 votes
0 answers
72 views
How to use a custom Angular M3 theme?
I am having a difficult time figuring out how to use M3. I've been trying to follow Agular's documentation here. I used ng generate @angular/material:theme-color to generate several palettes, but the ...