@@ -101,11 +101,11 @@ export class MatIconRegistry {
101
101
private _fontCssClassesByAlias = new Map < string , string > ( ) ;
102
102
103
103
/**
104
- * The CSS class to apply when an `<mat-icon>` component has no icon name, url, or font specified.
105
- * The default 'material-icons' value assumes that the material icon font has been loaded as
106
- * described at http://google.github.io/material-design-icons/#icon-font-for-the-web
104
+ * The CSS classes to apply when an `<mat-icon>` component has no icon name, url, or font
105
+ * specified. The default 'material-icons' value assumes that the material icon font has been
106
+ * loaded as described at http://google.github.io/material-design-icons/#icon-font-for-the-web
107
107
*/
108
- private _defaultFontSetClass = 'material-icons' ;
108
+ private _defaultFontSetClass = [ 'material-icons' ] ;
109
109
110
110
constructor (
111
111
@Optional ( ) private _httpClient : HttpClient ,
@@ -182,21 +182,19 @@ export class MatIconRegistry {
182
182
}
183
183
184
184
/**
185
- * Sets the CSS class name to be used for icon fonts when an `<mat-icon>` component does not
185
+ * Sets the CSS classes to be used for icon fonts when an `<mat-icon>` component does not
186
186
* have a fontSet input value, and is not loading an icon by name or URL.
187
- *
188
- * @param className
189
187
*/
190
- setDefaultFontSetClass ( className : string ) : this {
191
- this . _defaultFontSetClass = className ;
188
+ setDefaultFontSetClass ( ... classNames : string [ ] ) : this {
189
+ this . _defaultFontSetClass = classNames ;
192
190
return this ;
193
191
}
194
192
195
193
/**
196
- * Returns the CSS class name to be used for icon fonts when an `<mat-icon>` component does not
194
+ * Returns the CSS classes to be used for icon fonts when an `<mat-icon>` component does not
197
195
* have a fontSet input value, and is not loading an icon by name or URL.
198
196
*/
199
- getDefaultFontSetClass ( ) : string {
197
+ getDefaultFontSetClass ( ) : string [ ] {
200
198
return this . _defaultFontSetClass ;
201
199
}
202
200
0 commit comments