Closed
Description
Recommendation by @stringtheory
- use Google Lighthouse in the Chrome Developer Tools
Findings
- Background and foreground colors do not have a sufficient contrast ratio.
- Syntax highlighting of JSON and YAML: string orange, comment grey, and other colors are too bright
- Fall back to current ReSpec default colors and nudge the problematic ones a little
- The bright green headlines are problematic
- Choose a different green, see this and the following comment for choices
- Syntax highlighting of JSON and YAML: string orange, comment grey, and other colors are too bright
- Links rely on color to be distinguishable.
- RFC references - make them bold and underlined?
Additional findings (not strictly accessibility)
- Inconsistent headline formatting
- h1 and h2 are normal and green
- h3 is bold and black
- h4 is italicized and black
- h5 is small-caps and black
- empty line at start of each code block
Accessible preview: https://ralfhandl.github.io/OpenAPI-Specification/oas/latest-a11y.html
Currently published: https://spec.openapis.org/oas/latest.html