Start with high-quality ingredients (semantic HMTL)
Slide 19
Mix in key accessibility seasonings (ARIA … just a touch)
Slide 20
Follow the directions (documentation)
Slide 21
Provide helpful hints (best practices)
Slide 22
Icons
Slide 23
Icons Informative or decorative
• Informative icons need descriptive text
• Decorative icons need to be hidden from screen readers with the ‘aria-hidden’ attribute
Slide 24
Accessible Icon component: SVGs vs. Icon Fonts
Slide 25
Icon
Slide 26
Icon
Slide 27
Icon
Prepping for React component scenarios
Slide 28
React class component
JSX syntax
Slide 29
Renders as HTML in the browser
Slide 30
JSX syntax
Slide 31
Icon
Slide 32
Icon
Slide 33
Icon
Slide 34
Icon
Slide 35
Icon
Slide 36
Helpful hints Informative Icon
Slide 37
Helpful hints Decorative icon
Slide 38
Helpful hints Custom-text informative Icon
Slide 39
Buttons
Slide 40
Buttons
• Buttons perform an action on the page
• Buttons should look and act like a button
• Use semantic HTML, get screen reader and keyboard functionality for free
Slide 41
Button
Slide 42
Slide 43
Slide 44
Slide 45
Slide 46
Slide 47
Slide 48
Slide 49
Slide 50
Helpful hints Featured button
Slide 51
Helpful hints Featured Icon button
Slide 52
Helpful hints Featured Button with Icon Announced
Slide 53
Helpful hints Featured button with custom Icon title
Slide 54
Inputs
Slide 55
Inputs - labels and error messages are key ingredients
• Labeled inputs give all users more context
Slide 56
Placeholders are NOT labels
• Avoid using placeholders instead of labels, users will lose context
• Hard to style across browsers
• Placeholders aren’t auto translated