WHEN I use the arrow keys
I SEE the Tidbit scrolls into view
When when I use the tab key
I SEE the focusable link (if present) receives keyboard focus - there is a highly visible focus ring
2 Desktop screenreader
WHEN I use a desktop screenreader (NVDA, JAWS, VoiceOver)
AND
I use the arrow keys
I HEARThe screen reader announces the text alternative for the info icon. Such as "Info","Error", "Caution", or "Success".
I HEARThe screen reader announces the visual label for any nested controls and any additional context. e.g. "Learn more Cats are amazing creatures". Note: Some screen readers require different navigational techniques to get the additional context to announce.
I HEARIt identifies the info icon as an image and the Tidbit heading as a heading
I HEARThere is no grouping for the Tidbit
When when I use the tab key
I HEARthe focusable link (if present) receives keyboard focus - there is a highly visible focus ring
3 Mobile screenreader
WHEN I use a mobile screenreader (Talkback, VoiceOver)
AND
I swipe to contents of the Tidbit are accessed in this order: Icon, heading, paragraph, link
I HEARThe screen reader announces the text alternative for the info icon. Such as "Info","Error", "Caution", or "Success".
I HEARThe screen reader announces the visual label for any nested controls and any additional context. e.g. "Learn more Cats are amazing creatures". Note: Some screen readers require different navigational techniques to get the additional context to announce.
I HEARIt identifies the info icon as an image and the Tidbit heading as a heading
I HEARThere is no grouping for the Tidbit
1 Keyboard & screen reader actions
When I use
I see/hear
Arrow-keys
The Tidbit scrolls into view
Tab-key
The focusable link (if present) receives keyboard focus - there is a highly visible focus ring
2 Mobile screenreader gestures
When I use
I hear
Swipe
The individual contents of the Tidbit are accessed in this order: Icon, heading, paragraph, link
3 Screenreader output for all devices
Reads
I hear
Name
The screen reader announces the text alternative for the info icon. Such as "Info","Error", "Caution", or "Success".
Description
The screen reader announces the visual label for any nested controls and any additional context. e.g. "Learn more Cats are amazing creatures". Note: Some screen readers require different navigational techniques to get the additional context to announce.
Role
It identifies the info icon as an image and the Tidbit heading as a heading
Group
There is no grouping for the Tidbit
Code examples
Use semantic HTML
Typical Tidbit markup consists of an SVG icon, heading, paragraph text, and a link.
Standard Tidbit
Cats are amazing creatures
Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima dolorum repudiandae sit molestias aperiam, quam pariatur qui, deleniti quas porro consectetur sed nulla, veniam provident eveniet officia sint error magni!
Icon: Ensure that the info icon has a text alternative. Add role="img" and aria-label="Info" to the SVG.
Heading: Ensure the bold text that leads the Tidbit paragraph text is a heading element. Consider the hiearchy of the page when choosing the heading level.
Link: If the link in the Tidbit is a generic “Learn more” “More info” style link, ensure that it is programmatically associated with the nearby heading with aria-describedby. The aria-describedby value will the the ID found on the heading element at the top of the Tidbit.
Tidbit with no heading
Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima dolorum repudiandae sit molestias aperiam, quam pariatur qui, deleniti quas porro consectetur sed nulla, veniam provident eveniet officia sint error magni!
Ensure the link text is meaningful. Avoid generic “Learn more” “Read more” links when there is no heading.
Tidbit with no heading no tertiary link
Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima dolorum repudiandae sit molestias aperiam, quam pariatur qui, deleniti quas porro consectetur sed nulla, veniam provident eveniet officia sint error magni!
Tidbit - Error example
Ooops! Something is not right.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima dolorum repudiandae sit molestias aperiam, quam pariatur qui, deleniti quas porro consectetur sed nulla, veniam provident eveniet officia sint error magni!
Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima dolorum repudiandae sit molestias aperiam, quam pariatur qui, deleniti quas porro consectetur sed nulla, veniam provident eveniet officia sint error magni!
Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima dolorum repudiandae sit molestias aperiam, quam pariatur qui, deleniti quas porro consectetur sed nulla, veniam provident eveniet officia sint error magni!