Custom JavaScript/ARIA Widgets Flashcards
True or false: ARIA is useful only to assistive technologies.
True
True or false: You can refer to multiple IDs with aria-labelledby, allowing you to refer to multiple selections of text and apply them all together to label an element
True
Must (not), Should (not), May (not)
The application role _____ be used anywhere where screen reader users need to use page navigation features
Must not
Must (not), Should (not), May (not)
Meaningful non-focusable content in an application region _____ be programmatically associated with focusable elements, or _____ be made accessible to screen readers in some other way.
Must, Must
Must (not), Should (not), May (not)
Non-focusable items _____ be made focusable just for the sake of making them readable to screen readers.
Should not
True or false: A screen reader would read the following < h1 > as “Heading level 1: Heading Text”.
< h1 role=”presentation” >Heading Text< /h1 >
False. role=”presentation” cancels out the semantic label, so it would just read ‘Heading Text’.
What is the document ARIA role?
When in a document region, screen readers allow users to use keyboard shortcuts to navigate by elements (headings, landmarks, tables, lists, etc.), and allow users to access all aspects of the text, including the spelling of words. The only reason to actually write role=”document” is to create a document region inside some other type of region, such as within an application region.
What is the application ARIA role?
Application mode exists to allow developers complete freedom over programming the behaviors of a widget, including keyboard event handlers. Not recommended because it can go wrong easily.
What is the presentation ARIA role?
Marking a section as role=”presentation” essentially cancels the native role of the element and turns it into the equivalent of a < span > or < div >, which are neutral, un-semantic tags that convey no role.
What is the definition ARIA role?
It can mark a section of text as a definition. Not recommended: use < dl >structure instead.
What is the note ARIA role?
The note role is generally meant to be read in the context of the rest of the content around it.
What is the directory ARIA role?
The directory role is for designating a table of contents or other similar directory structure.
Must (not), Should (not), May (not)
If the aria-describedby text is critical, it _____ be available to sighted users, and _____ be available in the document context (not just when the focus is on the element with the aria-describedby attribute) as text readable by screen readers.
Must, Must
What is the aria-live attribute?
Allows you to make announcements to screen reader users, independent of what the user does.
True or false: it’s okay to turn off the visual focus indicator.
FALSE, unless you provide a suitable alternative