Skip to content

Improve accessibility of OpenAPI specification documents #3946

Closed
@ralfhandl

Description

@ralfhandl

Recommendation by @stringtheory

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
  • 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
image

Currently published: https://spec.openapis.org/oas/latest.html
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions