<svg class="ecl-icon ecl-icon--m" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg>
Try it yourself on the playground
PlaygroundYou can pick an icon from the library we provide.
Note: display of icons on Internet Explorer is made possible by the use of svg4everybody
Color
You can use the default, primary or inverted colours:
<svg class="ecl-icon ecl-icon--m" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--m ecl-icon--primary" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg>
Try it yourself on the playground
PlaygroundSize
You can change the size of the icon by applying one of the following classes:
ecl-icon--2xs
: 10×10ecl-icon--xs
: 16×16ecl-icon--s
: 20×20ecl-icon--m
: 24×24ecl-icon--l
: 32×32ecl-icon--xl
: 40×40ecl-icon--2xl
: 48×48ecl-icon--fluid
: 1em
<svg class="ecl-icon ecl-icon--2xs" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--xs" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--s" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--m" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--l" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--xl" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--2xl" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--fluid" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg>
Try it yourself on the playground
PlaygroundRotate icons
You can rotate icons by adding one of the following classes:
ecl-icon--rotate-0
: 0 degreeecl-icon--rotate-90
: 90 degreesecl-icon--rotate-180
: 180 degreesecl-icon--rotate-270
: 270 degrees
<svg class="ecl-icon ecl-icon--m ecl-icon--rotate-0" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--m ecl-icon--rotate-90" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--m ecl-icon--rotate-180" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--m ecl-icon--rotate-270" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg>
Try it yourself on the playground
PlaygroundFlip icons
You can flip icons by adding the classes ecl-icon--flip-horizontal
or ecl-icon--flip-vertical
.
<svg class="ecl-icon ecl-icon--m ecl-icon--flip-horizontal" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg><svg class="ecl-icon ecl-icon--m ecl-icon--flip-vertical" focusable="false" aria-hidden="true">
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg>
Try it yourself on the playground
PlaygroundAccessibility
If your icon is only used as a decorative element, you don't have to add any special markup.
On the other hand, if it's used as an image, you might want to add a couple of extra markup:
<svg class="ecl-icon ecl-icon--m" focusable="false" aria-hidden="false" role="img"
aria-labelledby="example-title example-desc">
<title id="example-title">Title</title>
<desc id="example-desc">Description</desc>
<use xlink:href="/dist/media/icons.96a6ea95.svg#audio"></use>
</svg>
Try it yourself on the playground
Playground