@@ -118,11 +118,11 @@ export class MatIconRegistry implements OnDestroy {
118
118
private _fontCssClassesByAlias = new Map < string , string > ( ) ;
119
119
120
120
/**
121
- * The CSS class to apply when an `<mat-icon>` component has no icon name, url, or font specified.
122
- * The default 'material-icons' value assumes that the material icon font has been loaded as
123
- * described at http://google.github.io/material-design-icons/#icon-font-for-the-web
121
+ * The CSS classes to apply when an `<mat-icon>` component has no icon name, url, or font
122
+ * specified. The default 'material-icons' value assumes that the material icon font has been
123
+ * loaded as described at http://google.github.io/material-design-icons/#icon-font-for-the-web
124
124
*/
125
- private _defaultFontSetClass = 'material-icons' ;
125
+ private _defaultFontSetClass = [ 'material-icons' ] ;
126
126
127
127
constructor (
128
128
@Optional ( ) private _httpClient : HttpClient ,
@@ -239,21 +239,19 @@ export class MatIconRegistry implements OnDestroy {
239
239
}
240
240
241
241
/**
242
- * Sets the CSS class name to be used for icon fonts when an `<mat-icon>` component does not
242
+ * Sets the CSS classes to be used for icon fonts when an `<mat-icon>` component does not
243
243
* have a fontSet input value, and is not loading an icon by name or URL.
244
- *
245
- * @param className
246
244
*/
247
- setDefaultFontSetClass ( className : string ) : this {
248
- this . _defaultFontSetClass = className ;
245
+ setDefaultFontSetClass ( ... classNames : string [ ] ) : this {
246
+ this . _defaultFontSetClass = classNames ;
249
247
return this ;
250
248
}
251
249
252
250
/**
253
- * Returns the CSS class name to be used for icon fonts when an `<mat-icon>` component does not
251
+ * Returns the CSS classes to be used for icon fonts when an `<mat-icon>` component does not
254
252
* have a fontSet input value, and is not loading an icon by name or URL.
255
253
*/
256
- getDefaultFontSetClass ( ) : string {
254
+ getDefaultFontSetClass ( ) : string [ ] {
257
255
return this . _defaultFontSetClass ;
258
256
}
259
257
0 commit comments