Skip to content

Commit b0019f8

Browse files
authored
fix(material/core): generate Material Symbols in schematic (#33797)
Updates the `ng add` schematic to generate the Material Symbols font instead of Material Icons. Relates to #24845.
1 parent 39530db commit b0019f8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/material/schematics/ng-add/fonts/material-fonts.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function addFontsToIndex(options: Schema): Rule {
3333

3434
const fonts = [
3535
'https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap',
36-
'https://fonts.googleapis.com/icon?family=Material+Icons',
36+
'https://fonts.googleapis.com/icon?family=Material+Symbols+Outlined',
3737
];
3838

3939
projectIndexFiles.forEach(indexFilePath => {

‎src/material/schematics/ng-add/index.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ describe('ng-add schematic', () => {
150150
' <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>',
151151
);
152152
expect(htmlContent).toContain(
153-
' <link href="https://fonts.googleapis.com/icon?family=Material+Icons"',
153+
' <link href="https://fonts.googleapis.com/icon?family=Material+Symbols+Outlined"',
154154
);
155155
expect(htmlContent).toContain(
156156
' <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@' +

0 commit comments

Comments
 (0)