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