Cohort 02 | intechgration
A ccessibilit y
A 11 y
Its an idea that technology must be equally accessible to people with and without disabilities
ARIA — short for Accessible Rich Internet Applications — defines a way to make web content and web applications more accessible to people with disabilities.
ARIA can be used to enhance an HTML document by providing additional accessibility information about web pages
No ARIA is better than bad ARIA.They are keyboard shortcuts that an author has implemented to activate or give focus to an element.
Skip to content
It is a space-separated list of keyboard shortcuts that can bepressed to activate a command or textbox widget.
The keys defined in the shortcuts represent the physical keys pressed and not the actual charactersgenerated.
Each keyboard shortcut consists of one or more tokens delimited by the plus sign("+")
representing zero or more modifier keys and exactly one non-modifier key that must be pressed simultaneously to activate the given shortcut.
modifier keys exactly according to the UI Events KeyboardEvent key Values spec [uievents-key]
On Apple computers, meta corresponds to the Command key, and Alt to the Option key. The valid names for non-modifier keys are any printable character. A, B, 1, 2, $, Plus
for a plus sign,"Space" for the spacebar, or the names of any other non-modifier key specified in the UI Events KeyboardEvent key Values spec [uievents-key].
The use of "Space" for the spacebar is an exception to the UI Events KeyboardEvent key Values spec [uievents-key] as the space or spacebar key is encoded as spaceand would be treated as a white space character. ' '
Modifier keys come first when they are part of a keyboard shortcut.
that required non-modifier keys come last when they are part of a shortcut. The order of the modifier keys is not otherwise significant. Alt+Shift+T = Shift+Alt+T
T+Shift+Alt is not valid because all of the modifier keys don't come first. Alt is not valid because it doesn't include at least one non-modifier key.
both the uppercase and lowercase variants are considered equivalent : small a and capital aa and A are the same.
When implementing keyboard shortcuts authors should consider the keyboards they intend to support to avoid unintended results. Keyboard designs vary significantly based on the device used and the languages supported.
many modifier keys are used in conjunction with other keys to :
by avoiding keys other than ASCII letters, as number characters and common punctuation often require modifiers.
entered does not equate to the key generated.
For example, in French keyboard layouts, the number characters are not available until you press the Control key, so a keyboard shortcut defined as Control+2 would be ambiguous as this is how one would type the 2character on a French keyboard.
by a modifier key, the author MUST specify the actual key used to generate the character, that is generated by the key, and not the resulting character
enables the assistive technology to accurately convey what keys must be used to generate the shortcut
For example, on most US English keyboards, the percent sign % can be input by
pressingShift+5. The correct way to specify this shortcut is Shift+5. It is incorrect
to specify % or Shift+%. However, note that on some international keyboards the
percent sign might be an unmodified key, in which case % and Shift+% could be correct
on those keyboards.
is illegal in the host language or would cause a string to be terminated, authors MUSTuse the string escaping sequence of the host language to specify it.
The single-quote character can be encoded as ampersand hash 39 semi-colon ' in HTML.
MUST NOT change keyboard behavior in response to the aria-keyshortcuts attribute.
Control + Shift + ampersand hash 39 semi-colon '
Alt+Shift+P Control+F Meta+C Meta+Shift+C
⏩ ⏩ ⏩ A
⏩ ⏩ ⏩ Shift + Space
⏩ ⏩ ⏩ Control + Alt + U + .
⏩ ⏩ ⏩ Control + Shift + '
⏩ ⏩ ⏩ Alt+Shift+P Control+F
⏩ ⏩ ⏩ Meta+C Meta+Shift+C
ARIA provides several attributes to provide information about table, grid, and treegrid structures. The aria-colindex attribute defines the substructure, an element's column index or position with respect to the total number of columns, within such structures.
The aria-label should be used to provide a text alternative to an element that has no visible text on the screen.
// accessible name: send
// accessible name: send
You can make use of aria-label by adding it to certain HTML elements.
You should use it when you have non-textual indication of an element's purpose, but still need to provide text alternates for users who use assistive technology, such as screen readers.
TIP:LABELLING BEST PRACTICE
You don't need to add "button" in the label as screen readers already announce an element's
role.
// BAD: "send button, button"
// GOOD: "send button"
x
Take 3 mins and see why to use?
Such information may include illustrations, external links, or any form of extended information.
the illustration from the artworks presented
The aria-autocomplete attribute indicates whether inputting text could trigger display of one or more predictions of the user's intended value for a combobox, searchbox, or textbox and specifies how predictions will be presented if they are made.
The aria-autocomplete property only describes the type of predictive behavior for an input element for assistive technologies; it doesn't provide the functionality.
The aria-checked attribute indicates the current "checked" state of checkboxes, radio buttons, and other widgets. Note: Where possible use an HTML <input> element with type="checkbox" and type="radio" as these have built in semantics and do not require ARIA attributes. The mixed value is not supported on radio, menuitemradio, or switch and elements that inherits from these. The value will be false if mixed is set when not supported.
ARIA-SORT is a part of the WAI-ARIA specification, enhancing web accessibility. It indicates if items in a table are sorted in ascending, descending, none, or other order. The `aria-sort` attribute informs assistive technologies about the current sorting state of a column or row header. It should be added to a single header at a time and doesn't impact the actual sort order.
<table>
<thead>
<tr>
<th aria-sort="ascending">Last Name</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
If a user clicks on the Last Name header, the `aria-sort` value toggles between "ascending" and "descending" with JavaScript. It provides information about the sorted column to assistive technology users.
ARIA-SORT is a crucial attribute enhancing accessibility for sortable tables. It communicates the sorting state to assistive technology users, improving interaction and understanding of data tables.
The aria-describedby attribute is used to provide additional descriptive label for user interface to screen readers with more context,functionality or information about the element
The aria-describedby attribute is used to link an element with one or more descriptions or additional information elements. These descriptions are intended to provide more information to users, and they might not necessarily be visible on the web page.
<button aria-label="Close" aria-describedby="descriptionClose" >X</button>
<div id="descriptionClose">Closing this window will discard any information entered and return you back to the main page</div>
The aria-valuetext attribute defines the human-readable text alternative of aria-valuenow for a range widget. Numbers — even percentages — aren't always user-friendly. Assistive technologies present aria-valuenow as numeric values.
The aria-valuenow attribute defines the current value for a range widget.
<p id="birthyearLabel" >What year were you born?</p>
<div
role="spinbutton"
tabindex="-1"
aria-valuenow="1984"
aria-valuemin="1900"
aria-valuemax="2021"
aria-labelledby="birthyearLabel">
<span class="value">1984</span>
<span role="button">
<span aria-hidden="true">+</span>
Increment year by 1
</span>
<span role="button">
<span aria-hidden="true">-</span>
Decrement year by 1
</span>
</div>
The aria-valuetext attribute defines the human-readable text alternative of aria-valuenow for a range widget. Numbers — even percentages — aren't always user-friendly. Assistive technologies present aria-valuenow as numeric values.
If a progress bar is at 8%, what does that mean? aria-valuetext provides a way of presenting the current value in a more user-friendly, human-understandable way. For example, a battery meter value might be conveyed as aria-valuetext="8% (34 minutes) remaining".
The aria-valuetext attribute is used with the aria-valuenow attribute, not instead of it, unless that value is not known. aria-valuetext is only needed when the numeric value of aria-valuenow is not meaningful. For example, a range's values are numeric but may be used for non-numeric values, such as college class level.
The values of aria-valuenow for a 4-year college could range from 1 through 4, which indicate the position of each value in the value space. In this case, the aria-valuetext could be one of the strings: "first year", "sophomore", "junior", and enior".
If the numeric value is meaningful, such as a spinner with aria-valuenow="3" for how many pizza slices you want to order, aria-valuetext is not needed.
When both the aria-valuetext and aria-valuenow are included, the aria-valuetext is announced. When there is no aria-valuetext attribute, assistive technologies will announce the aria-valuenow attribute for the current value.
And this is all you need to know about the aria-valuetext! Or not? Feel free to ask any questions!