@@ -117,11 +117,11 @@ export class MatIconRegistry {
117117 private _fontCssClassesByAlias = new Map < string , string > ( ) ;
118118
119119 /**
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
123123 */
124- private _defaultFontSetClass = 'material-icons' ;
124+ private _defaultFontSetClass = [ 'material-icons' ] ;
125125
126126 constructor (
127127 @Optional ( ) private _httpClient : HttpClient ,
@@ -238,21 +238,19 @@ export class MatIconRegistry {
238238 }
239239
240240 /**
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
242242 * have a fontSet input value, and is not loading an icon by name or URL.
243- *
244- * @param className
245243 */
246- setDefaultFontSetClass ( className : string ) : this {
247- this . _defaultFontSetClass = className ;
244+ setDefaultFontSetClass ( ... classNames : string [ ] ) : this {
245+ this . _defaultFontSetClass = classNames ;
248246 return this ;
249247 }
250248
251249 /**
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
253251 * have a fontSet input value, and is not loading an icon by name or URL.
254252 */
255- getDefaultFontSetClass ( ) : string {
253+ getDefaultFontSetClass ( ) : string [ ] {
256254 return this . _defaultFontSetClass ;
257255 }
258256
0 commit comments