@@ -101,11 +101,11 @@ export class MatIconRegistry {
101101 private _fontCssClassesByAlias = new Map < string , string > ( ) ;
102102
103103 /**
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
107107 */
108- private _defaultFontSetClass = 'material-icons' ;
108+ private _defaultFontSetClass = [ 'material-icons' ] ;
109109
110110 constructor (
111111 @Optional ( ) private _httpClient : HttpClient ,
@@ -182,21 +182,19 @@ export class MatIconRegistry {
182182 }
183183
184184 /**
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
186186 * have a fontSet input value, and is not loading an icon by name or URL.
187- *
188- * @param className
189187 */
190- setDefaultFontSetClass ( className : string ) : this {
191- this . _defaultFontSetClass = className ;
188+ setDefaultFontSetClass ( ... classNames : string [ ] ) : this {
189+ this . _defaultFontSetClass = classNames ;
192190 return this ;
193191 }
194192
195193 /**
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
197195 * have a fontSet input value, and is not loading an icon by name or URL.
198196 */
199- getDefaultFontSetClass ( ) : string {
197+ getDefaultFontSetClass ( ) : string [ ] {
200198 return this . _defaultFontSetClass ;
201199 }
202200
0 commit comments