Skip to content

Commit

Permalink
Updated readme to include theming (#1906)
Browse files Browse the repository at this point in the history
* docs(md-icon theming): updated readme to include theming

* docs(md-icon theming): updated readme to include theming
  • Loading branch information
tdawgy authored and mmalerba committed Dec 8, 2016
1 parent dd508ea commit 55cf565
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/lib/icon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,19 @@ Multiple icon sets can be registered in the same namespace. If you request an ic

Note that all SVG icons are fetched via XmlHttpRequest, and due to the same-origin policy their URLs must be on the same domain as the containing page, or their servers must be configured to allow cross-domain access.

### Theming

Icons can be themed to match your "primary" palette, your "accent" palette, or your "warn" palette using the `color` attribute.
Simply pass in the palette name.

Example:

```html
<md-icon color="primary">home</md-icon>
<md-icon color="accent">home</md-icon>
<md-icon color="warn">home</md-icon>
```

### Accessibility

If you set an "aria-label" attribute on the md-icon element, its value will be used as-is. If you do not, the md-icon component will attempt to set the aria-label value from one of these sources:
Expand Down

0 comments on commit 55cf565

Please sign in to comment.