@@ -145,11 +145,11 @@ export class MatIconRegistry implements OnDestroy {
145
145
private _resolvers : IconResolver [ ] = [ ] ;
146
146
147
147
/**
148
- * The CSS class to apply when an `<mat-icon>` component has no icon name, url, or font specified.
149
- * The default 'material-icons' value assumes that the material icon font has been loaded as
150
- * described at http://google.github.io/material-design-icons/#icon-font-for-the-web
148
+ * The CSS classes to apply when an `<mat-icon>` component has no icon name, url, or font
149
+ * specified. The default 'material-icons' value assumes that the material icon font has been
150
+ * loaded as described at http://google.github.io/material-design-icons/#icon-font-for-the-web
151
151
*/
152
- private _defaultFontSetClass = 'material-icons' ;
152
+ private _defaultFontSetClass = [ 'material-icons' ] ;
153
153
154
154
constructor (
155
155
@Optional ( ) private _httpClient : HttpClient ,
@@ -302,21 +302,19 @@ export class MatIconRegistry implements OnDestroy {
302
302
}
303
303
304
304
/**
305
- * Sets the CSS class name to be used for icon fonts when an `<mat-icon>` component does not
305
+ * Sets the CSS classes to be used for icon fonts when an `<mat-icon>` component does not
306
306
* have a fontSet input value, and is not loading an icon by name or URL.
307
- *
308
- * @param className
309
307
*/
310
- setDefaultFontSetClass ( className : string ) : this {
311
- this . _defaultFontSetClass = className ;
308
+ setDefaultFontSetClass ( ... classNames : string [ ] ) : this {
309
+ this . _defaultFontSetClass = classNames ;
312
310
return this ;
313
311
}
314
312
315
313
/**
316
- * Returns the CSS class name to be used for icon fonts when an `<mat-icon>` component does not
314
+ * Returns the CSS classes to be used for icon fonts when an `<mat-icon>` component does not
317
315
* have a fontSet input value, and is not loading an icon by name or URL.
318
316
*/
319
- getDefaultFontSetClass ( ) : string {
317
+ getDefaultFontSetClass ( ) : string [ ] {
320
318
return this . _defaultFontSetClass ;
321
319
}
322
320
0 commit comments