diff --git a/src/_includes/accessibility/background.html b/src/_includes/accessibility/background.html new file mode 100644 index 000000000..adaf08c96 --- /dev/null +++ b/src/_includes/accessibility/background.html @@ -0,0 +1,15 @@ +
+ +

+ Modern versions of assistive technology, like screen readers, will read CSS generated content (how Font Awesome icons are rendered), as well as specific Unicode characters. When trying our default markup for rendering icons, assisistive technology may have the following problems. +

+ + +
diff --git a/src/_includes/accessibility/other.html b/src/_includes/accessibility/other.html new file mode 100644 index 000000000..e6261d8f5 --- /dev/null +++ b/src/_includes/accessibility/other.html @@ -0,0 +1,16 @@ +
+ +

+ While the scenarios and techniques above help avoid some serious issues and confusion, they are not exhaustive. There are many complex contexts and use cases when it comes to accessibility, such as users with low quality vision using high contrast mode to better see UI. There are some great tools and resources to learning and work on these out there. Here are a few reads we recommend. +

+ + + +

+ We'll continue to work on these under the larger topic of accessibility, but in the meantime, let us know if any bugs or issues. +

+
diff --git a/src/_includes/accessibility/using-with-accessibility.html b/src/_includes/accessibility/using-with-accessibility.html new file mode 100644 index 000000000..7b2661eed --- /dev/null +++ b/src/_includes/accessibility/using-with-accessibility.html @@ -0,0 +1,130 @@ +
+ +

+ When using icons in your UI, there are ways to help assistive technology either ignore or better understand Font Awesome. +

+ +

Icons used for pure decoration or visual styling

+

+ If you're using an icon to add some extra decoration or branding, it does not need to be announced to users as they are navigating your site or app aurally. Additionally, if you're using an icon to visually re-emphasize or add styling to content already present in your HTML, it does not need to be repeated to an assistive technology-using user. You can make sure this is not read by adding the aria-hidden="true" to your Font Awesome markup. +

+ +
+{% highlight html %} + +{% endhighlight %} +an icon being used as pure decoration +
+ +
+{% highlight html %} +

+ + Pied Piper, A Middle-Out Compression Solution Making Data Storage Problems Smaller +

+{% endhighlight %} +an icon being used as a logo +
+ +
+{% highlight html %} + View this project's code on Github +{% endhighlight %} +an icon being used in front of link text +
+ +

Icons that with semantic or interactive purpose

+

+ If you're using an icon to convey meaning (rather than only as a decorative element), ensure that this meaning is also conveyed to assistive technologies. This goes for content you're abbreviating via icons as well as interactive controls (buttons, form elements, toggles, etc.). There are a few techniques to accomplish this: +

+ +

If an icon is not an interactive element

+

+ If not representing an interactive element, like a button or link, use both a title attribute and an on the icon to provide a text alternative. This has the advantages of working with all modern screen readers, working well with the most ubiquitous speech recognition program, and helping users with cognitive disabilities by providing a mouse tooltip. +

+ +
+{% highlight html %} +
+
+ + Time to destination by car: +
+
4 minutes
+ +
+ + Time to destination by bike: +
+
12 minutes
+
+{% endhighlight %} + an icon being used to communicate travel methods +
+ +
+{% highlight html %} + +60 minutes remains in your exam + + +30 minutes remains in your exam + + +0 minutes remains in your exam +{% endhighlight %} + an icon being used to denote time remaining +
+ +

If an icon represents an interactive element

+

+ In addition to the recommendations above, use a title attribute which makes the accessible text discoverable by mouse and those with cognitive disabilities. +

+ +
+{% highlight html %} + + + View 3 items in your shopping cart + +{% endhighlight %} + an icon being used to communicate shopping cart state +
+ +
+{% highlight html %} + + + Skip to main navigation + +{% endhighlight %} + an icon being used as a link to a navigation menu + +{% highlight html %} + + + Delete + +{% endhighlight %} + an icon being used as a delete button's symbol + +
+
+ +
+ +
+ +
+ +
diff --git a/src/_includes/brand-adblock-warning.html b/src/_includes/brand-adblock-warning.html index eb6ee670f..9f4ddd8b6 100644 --- a/src/_includes/brand-adblock-warning.html +++ b/src/_includes/brand-adblock-warning.html @@ -1,4 +1,4 @@ -

Warning!

+

Warning!

Apparently, Adblock Plus can remove Font Awesome brand icons with their "Remove Social Media Buttons" setting. We will not use hacks to force them to display. Please report an issue with Adblock Plus if you believe this to be diff --git a/src/_includes/community/requesting-new-icons.html b/src/_includes/community/requesting-new-icons.html index e342f2868..e73f41c35 100644 --- a/src/_includes/community/requesting-new-icons.html +++ b/src/_includes/community/requesting-new-icons.html @@ -23,7 +23,7 @@
  • - Request concrete objects: it's harder to make an icon to represent happiness, it's easier to make a smiley face. + Request concrete objects: it's harder to make an icon to represent happiness, it's easier to make a smiley face.
  • diff --git a/src/_includes/examples/accessible.html b/src/_includes/examples/accessible.html new file mode 100644 index 000000000..cca638e56 --- /dev/null +++ b/src/_includes/examples/accessible.html @@ -0,0 +1,109 @@ +
    + +
    +
    +

    + + + Settings + + + + + Delete + + + + + Skip to main navigation + +

    + +

    + + Refreshing... + + + Saving. Hang tight! +

    + +

    +

    + + +
    +
    + + +
    +

    + +

    + + + View 3 items in your shopping cart + +

    + +

    + + Battery level: 50% +

    +
    +
    +

    + With our thoughts on icon accessibility in mind, If an icon only adds some extra decoration or branding, it does not need to be announced to users as they are navigating your site or app aurally. Alternatively, if an icon conveys meaning in your content or interface, ensure that this meaning is also conveyed to assistive technologies through alternative displays or text. +

    + +{% highlight html %} + + + Settings + + + + + Delete + + + + + Skip to main navigation + +{% endhighlight %} + +{% highlight html %} +