@@ -118,11 +118,11 @@ export class MatIconRegistry implements OnDestroy {
118118 private _fontCssClassesByAlias = new Map < string , string > ( ) ;
119119
120120 /**
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
124124 */
125- private _defaultFontSetClass = 'material-icons' ;
125+ private _defaultFontSetClass = [ 'material-icons' ] ;
126126
127127 constructor (
128128 @Optional ( ) private _httpClient : HttpClient ,
@@ -239,21 +239,19 @@ export class MatIconRegistry implements OnDestroy {
239239 }
240240
241241 /**
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
243243 * have a fontSet input value, and is not loading an icon by name or URL.
244- *
245- * @param className
246244 */
247- setDefaultFontSetClass ( className : string ) : this {
248- this . _defaultFontSetClass = className ;
245+ setDefaultFontSetClass ( ... classNames : string [ ] ) : this {
246+ this . _defaultFontSetClass = classNames ;
249247 return this ;
250248 }
251249
252250 /**
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
254252 * have a fontSet input value, and is not loading an icon by name or URL.
255253 */
256- getDefaultFontSetClass ( ) : string {
254+ getDefaultFontSetClass ( ) : string [ ] {
257255 return this . _defaultFontSetClass ;
258256 }
259257
0 commit comments