2.0.0
Icons enhance experiences by visually communicating meaning, actions, status, and feedback. Browse available icons on the Iconography page.
Use to create a static, non-interactive icon.
<svg class="mds-icon">
<use xlink:href="/icons/mds.svg#heart">
<title>favorite</title>
</use>
</svg>
Icons are available in small and medium sizes. The default size is medium, and you can use a modifier class to make icons smaller (mds-icon--s
).
<svg class="mds-icon mds-icon--s">
<use xlink:href="/icons/mds.svg#heart--s">
<title>favorite</title>
</use>
</svg>
23px
by 23px
.15px
by 15px
.#000000
by default, style icons by adding a fill
property in your product’s CSS.<title>
tag within the SVG with a text describing the icons.
Class |
Applies to |
Outcome |
---|---|---|
|
|
Scales icon down to |
@include icon-height-removal()
Use to vertically center an icon without influencing overall vertical spacing, particularly when cropping text to cap height and baseline using the mds-text-crop
mixin.
The MDS icons depend on the svg4everybody polyfill for IE11 compatibility.