@@ -145,11 +145,11 @@ export class MatIconRegistry implements OnDestroy {
145145 private _resolvers : IconResolver [ ] = [ ] ;
146146
147147 /**
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
151151 */
152- private _defaultFontSetClass = 'material-icons' ;
152+ private _defaultFontSetClass = [ 'material-icons' ] ;
153153
154154 constructor (
155155 @Optional ( ) private _httpClient : HttpClient ,
@@ -302,21 +302,19 @@ export class MatIconRegistry implements OnDestroy {
302302 }
303303
304304 /**
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
306306 * have a fontSet input value, and is not loading an icon by name or URL.
307- *
308- * @param className
309307 */
310- setDefaultFontSetClass ( className : string ) : this {
311- this . _defaultFontSetClass = className ;
308+ setDefaultFontSetClass ( ... classNames : string [ ] ) : this {
309+ this . _defaultFontSetClass = classNames ;
312310 return this ;
313311 }
314312
315313 /**
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
317315 * have a fontSet input value, and is not loading an icon by name or URL.
318316 */
319- getDefaultFontSetClass ( ) : string {
317+ getDefaultFontSetClass ( ) : string [ ] {
320318 return this . _defaultFontSetClass ;
321319 }
322320
0 commit comments