Skip to content

Commit a0cde04

Browse files
committed
Change icon font default to Material symbols from Material icons
1 parent 9939029 commit a0cde04

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/material/icon/icon-registry.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ export class MatIconRegistry implements OnDestroy {
145145

146146
/**
147147
* The CSS classes to apply when an `<mat-icon>` component has no icon name, url, or font
148-
* specified. The default 'material-icons' value assumes that the material icon font has been
149-
* loaded as described at https://google.github.io/material-design-icons/#icon-font-for-the-web
148+
* specified. The default 'material-symbols-outlined' value assumes that the material icon font
149+
* has been loaded as described at https://google.github.io/material-design-icons/#icon-font-for-the-web
150150
*/
151-
private _defaultFontSetClass = ['material-icons', 'mat-ligature-font'];
151+
private _defaultFontSetClass = ['material-symbols-outlined', 'mat-ligature-font'];
152152

153153
constructor(
154154
@Optional() private _httpClient: HttpClient,

src/material/icon/icon.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('MatIcon', () => {
122122
'mat-icon',
123123
'mat-ligature-font',
124124
'mat-primary',
125-
'material-icons',
125+
'material-symbols-outlined',
126126
'notranslate',
127127
]);
128128
});
@@ -141,7 +141,7 @@ describe('MatIcon', () => {
141141
'mat-icon',
142142
'mat-icon-no-color',
143143
'mat-ligature-font',
144-
'material-icons',
144+
'material-symbols-outlined',
145145
'notranslate',
146146
]);
147147
});
@@ -178,7 +178,7 @@ describe('MatIcon', () => {
178178
});
179179

180180
describe('Ligature icons', () => {
181-
it('should add material-icons and mat-ligature-font class by default', () => {
181+
it('should add material-symbols-outlined and mat-ligature-font class by default', () => {
182182
const fixture = TestBed.createComponent(IconWithLigature);
183183

184184
const testComponent = fixture.componentInstance;
@@ -190,7 +190,7 @@ describe('MatIcon', () => {
190190
'mat-icon',
191191
'mat-icon-no-color',
192192
'mat-ligature-font',
193-
'material-icons',
193+
'material-symbols-outlined',
194194
'notranslate',
195195
]);
196196
});
@@ -265,7 +265,7 @@ describe('MatIcon', () => {
265265
expect(icon.getAttribute('fontIcon')).toBe('house');
266266
});
267267

268-
it('should add material-icons and mat-ligature-font class by default', () => {
268+
it('should add material-symbols-outlined and mat-ligature-font class by default', () => {
269269
const fixture = TestBed.createComponent(IconWithLigatureByAttribute);
270270

271271
const testComponent = fixture.componentInstance;
@@ -277,7 +277,7 @@ describe('MatIcon', () => {
277277
'mat-icon',
278278
'mat-icon-no-color',
279279
'mat-ligature-font',
280-
'material-icons',
280+
'material-symbols-outlined',
281281
'notranslate',
282282
]);
283283
});

src/material/icon/testing/fake-icon-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class FakeMatIconRegistry implements PublicApi<MatIconRegistry>, OnDestro
6161
}
6262

6363
getDefaultFontSetClass() {
64-
return ['material-icons'];
64+
return ['material-symbols-outlined'];
6565
}
6666

6767
getSvgIconFromUrl(): Observable<SVGElement> {

0 commit comments

Comments
 (0)