From 9af8ec61bb78b60a83fce241ef0e5f485dcfda28 Mon Sep 17 00:00:00 2001 From: Thijs Paelman Date: Fri, 2 Jun 2023 23:47:20 +0200 Subject: Add Matrix socials & fix typo Add Matrix social element, by installing an extra font. It was pretty painful to install, and has some impact on all css-styles that start with the '.fa' class, due to global namespacing in scss (by using @import) --- .../accessibility/accessibility-manual.html | 121 +++++++++++++++++++++ .../doc/_includes/accessibility/background.html | 15 +++ .../src/doc/_includes/accessibility/other.html | 17 +++ 3 files changed, 153 insertions(+) create mode 100644 themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/accessibility-manual.html create mode 100644 themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/background.html create mode 100644 themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/other.html (limited to 'themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility') diff --git a/themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/accessibility-manual.html b/themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/accessibility-manual.html new file mode 100644 index 0000000..6878507 --- /dev/null +++ b/themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/accessibility-manual.html @@ -0,0 +1,121 @@ +
+ +

+ + Manually make your icons accessible +

+ +

When using icons in your UI, there are manual techniques and ways to help assistive technology either ignore or better understand {{ site.forkawesome.name }}.

+ +

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 {{ site.forkawesome.name }} markup.

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

+ + Fork Awesome, a fork of the iconic font and CSS toolkit +

+{% 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 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

+

+ The simplest way to provide a text alternative is to use the aria-hidden="true" attribute on the icon and to include the text with an additional element, such as a <span>, with appropriate CSS to visually hide the element while keeping it accessible to assistive technologies. In addition, you can add a title attribute on the icon to provide a tooltip for sighted mouse users. +

+ +
+{% 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 remain in your exam + + +30 minutes remain in your exam + + +0 minutes remain in your exam +{% endhighlight %} + an icon being used to denote time remaining +
+ +

If an icon represents an interactive element

+

+ In the case of focusable interactive elements, there are various options to include an alternative text or label to the element, without the need for any visually hidden <span> or similar. For instance, simply adding the aria-label attribute with a text description to the interactive element itself will be sufficient to provide an accessible alternative name for the element. If you need to provide a visual tooltip on mouseover/focus, we recommend additionally using the title attribute or a custom tooltip solution. +

+ +
+{% highlight html %} + + + +{% endhighlight %} + an icon being used to communicate shopping cart state +
+ +
+{% highlight html %} + + + +{% endhighlight %} + an icon being used as a link to a navigation menu +
+ +
+{% highlight html %} + + + +{% endhighlight %} + an icon being used as a delete button's symbol with a title attribute to provide a native mouse tooltip +
+ + + +
diff --git a/themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/background.html b/themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/background.html new file mode 100644 index 0000000..ac26a4a --- /dev/null +++ b/themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/background.html @@ -0,0 +1,15 @@ +
+

About Icon Fonts & Accessibility

+

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

+ + +
diff --git a/themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/other.html b/themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/other.html new file mode 100644 index 0000000..d3054ba --- /dev/null +++ b/themes/docsy/assets/vendor/forkawesome/src/doc/_includes/accessibility/other.html @@ -0,0 +1,17 @@ +
+ +

+ While the scenarios and techniques here 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 vision who need a high color contrast ratio to see UI. There are some great tools and resources to learn from and work on these issues 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. +

+
-- cgit v1.2.3