Bootstrap components docs
add icons in span, <span class="fas fa-stroopwafel"></span>.
All free icons are currently loaded. "regular" & "free" icons.
Could be loaded via two methods:
- CSS + webfonts: traditional method, load webfonts. good with lots of icons on the page, simple, low CPU use.
- JS + SVG: newer method, insert SVG icons using JS. good with fewer icons, higher CPU use.
Both methods are add the project, but it is using currently using CSS, check comments in _includes/head.html.
- JS + SVG version adds accessibility aria labels automatically. If the icon has semantic meaning, add a
title=attribute to the fa<span>. - CSS + webfonts version, need to add aria labels manually.
- decorative icons: add
aria-hiddento element, e.g.<span class="fas fa-camera-retro" aria-hidden></span> - semantic icons: add
aria-hiddenand atitleto element, plus add description withclass="sr-only".
- decorative icons: add