Skip to content

Escape tags for documentation #6904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/lib/icon/icon-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class SvgIconConfig {
}

/**
* Service to register and display icons used by the <mat-icon> component.
* Service to register and display icons used by the `<mat-icon>` component.
* - Registers icon URLs by namespace and name.
* - Registers icon set URLs by namespace.
* - Registers aliases for CSS classes, for use with icon fonts.
Expand Down Expand Up @@ -101,7 +101,7 @@ export class MatIconRegistry {
private _fontCssClassesByAlias = new Map<string, string>();

/**
* The CSS class to apply when an <mat-icon> component has no icon name, url, or font specified.
* The CSS class to apply when an `<mat-icon>` component has no icon name, url, or font specified.
* The default 'material-icons' value assumes that the material icon font has been loaded as
* described at http://google.github.io/material-design-icons/#icon-font-for-the-web
*/
Expand Down Expand Up @@ -164,7 +164,7 @@ export class MatIconRegistry {
/**
* Defines an alias for a CSS class name to be used for icon fonts. Creating an matIcon
* component with the alias as the fontSet input will cause the class name to be applied
* to the <mat-icon> element.
* to the `<mat-icon>` element.
*
* @param alias Alias for the font.
* @param className Class name override to be used instead of the alias.
Expand All @@ -183,7 +183,7 @@ export class MatIconRegistry {
}

/**
* Sets the CSS class name to be used for icon fonts when an <mat-icon> component does not
* Sets the CSS class name to be used for icon fonts when an `<mat-icon>` component does not
* have a fontSet input value, and is not loading an icon by name or URL.
*
* @param className
Expand All @@ -194,7 +194,7 @@ export class MatIconRegistry {
}

/**
* Returns the CSS class name to be used for icon fonts when an <mat-icon> component does not
* Returns the CSS class name to be used for icon fonts when an `<mat-icon>` component does not
* have a fontSet input value, and is not loading an icon by name or URL.
*/
getDefaultFontSetClass(): string {
Expand Down Expand Up @@ -274,7 +274,7 @@ export class MatIconRegistry {
/**
* Attempts to find an icon with the specified name in any of the SVG icon sets.
* First searches the available cached icons for a nested element with a matching name, and
* if found copies the element to a new <svg> element. If not found, fetches all icon sets
* if found copies the element to a new `<svg>` element. If not found, fetches all icon sets
* that have not been cached, and searches again after all fetches are completed.
* The returned Observable produces the SVG element if possible, and throws
* an error if no icon with the specified name can be found.
Expand Down