GitBook Accessibility Checklist 2026 | WCAG 2.1 AA & EAA Compliance
Last updated: 2026-06-21
GitBook hosts published documentation sites with a sidebar-driven layout, built-in search, syntax-highlighted code blocks, tables, and embedded content such as OpenAPI and Swagger references, Loom recordings, and YouTube videos. When you publish a space to a custom domain, the people reading your docs experience the rendered site, not the editor you author in, so accessibility problems show up in the reader experience even when the editor feels fine. Most GitBook authors are writers and small teams rather than front-end developers, which means accessibility usually comes down to authoring habits (writing alt text, structuring headings, choosing readable colors in the theme) rather than touching code. The operative standard for the European Accessibility Act (EAA) and for most ADA-related expectations in the United States is WCAG 2.1 Level AA, and that is the baseline this checklist targets.
WCAG 2.2 adds a handful of criteria worth knowing about because they affect docs sites specifically: focus appearance (2.4.11 and 2.4.13) for keyboard users moving through the sidebar and search results, target size (2.5.8) for small controls like the copy-code button or collapse toggles on mobile, and redundant entry (3.3.7) for any forms you embed. Because GitBook controls much of the page chrome and theme, some fixes are configuration choices (theme colors, language settings) while others are pure authoring discipline (alt text, heading order, link wording, table headers). This checklist focuses on the issues that commonly surface on docs sites and frames each one around what a GitBook author can realistically change, hedging where the exact behavior depends on your theme or GitBook plan. None of this is legal advice; use it as a starting point and validate your live site with the recommended tools below before claiming conformance.
Common Accessibility Issues
Documentation is screenshot-heavy: UI walkthroughs, dashboards, and architecture diagrams. When images are inserted without a text alternative, screen reader users hear only a filename or nothing at all, so the step being illustrated is lost. On GitBook this is common because the image upload flow makes adding alt text optional, and authors often paste screenshots quickly while drafting. Decorative images that carry no information also need handling so they are not announced as meaningless noise.
When you insert or edit an image in GitBook, add a concise alt description that conveys what the image shows in context, for example what a button does or what a diagram explains, not just 'screenshot'. Keep it under roughly 125 characters and avoid repeating nearby caption text. For purely decorative images, use empty alt text so assistive technology skips them. Re-audit older pages, since alt text added later still benefits every reader.
Long docs pages rely on headings for both visual scanning and screen reader navigation. Authors often pick a heading level by how big it looks rather than by structure, jumping from an H2 straight to an H4 or scattering multiple H1s on one page. Screen reader users navigate by heading and lose their place when the hierarchy is broken, and the on-page outline or 'On this page' table of contents can become misleading when levels are skipped.
Use headings to express the document outline, not for visual size. Keep one top-level page title and nest sub-sections in order: H1 then H2 then H3, without skipping a level. In the GitBook editor, apply the Heading 2 and Heading 3 block types in sequence and reserve bold text for emphasis rather than as a fake heading. Review long pages with a heading-outline tool to confirm the structure reads logically from top to bottom.
GitBook lets you set a brand color that is often applied to links, buttons, and accents. Many brand palettes use light or mid-tone colors that look good on a marketing site but fail the 4.5:1 contrast ratio for normal text against the page background. The result is in-line links and UI labels that low-vision users and people in bright environments cannot read reliably, a problem that affects every page of the published site at once.
Check your chosen brand and link colors against the page background with a contrast checker, aiming for at least 4.5:1 for body text and link text and 3:1 for large text and meaningful UI boundaries. If the brand color fails, darken or saturate the variant used for text and interactive elements while keeping the lighter shade for large logos only. Verify both light and dark theme modes if your space offers both, since contrast can pass in one and fail in the other.
Code samples are core to most GitBook docs. Problems arise when essential information is conveyed only through color (syntax highlighting) or when long, horizontally scrolling code is hard to reach with the keyboard. Code that is pasted as an image of a terminal is the worst case: screen reader users get nothing and the snippet cannot be copied. Relying solely on highlight color to distinguish, say, an added versus removed line also fails users who do not perceive that color difference.
Always paste code as real text into a GitBook code block, never as a screenshot, so it is selectable, copyable, and readable by assistive technology. Do not depend on color alone to convey meaning; add comments, +/- markers, or prose to explain important lines. If a code block scrolls horizontally, confirm the scroll region is reachable and operable by keyboard so non-mouse users can read the full line.
Authors frequently embed diagrams, flowcharts, or callout banners that contain important text baked into the image. This text cannot be resized, recolored, selected, or translated, and it often blurs when users zoom. On a docs site this hurts readers who enlarge pages, use high-contrast modes, or rely on browser translation. It also means the diagram's meaning is unavailable to screen reader users unless equivalent text is provided elsewhere.
Prefer real text over images of text wherever possible: lay out comparisons in GitBook tables, build steps as ordered lists, and use the platform's native callout blocks instead of image banners. When a diagram genuinely needs to be an image, write alt text that conveys its full meaning and, for complex figures, add a short text description or caption nearby that restates the key relationships in words.
Reference docs lean on tables for parameters, options, and comparisons. When a table has no designated header row, or when headers are not programmatically associated with their columns, screen reader users hear a flat stream of cells with no way to know which value belongs to which column. GitBook tables created quickly can end up with the first row styled like a header visually but not marked up as header cells, which passes a sighted glance but fails assistive technology.
Make sure the first row of every data table is a true header row in GitBook's table editor rather than just bold body text. For complex tables, confirm headers map to the correct columns (and rows where relevant). Keep tables for tabular data only, not for page layout, and split very wide tables so they remain understandable. Test by navigating the published table with a screen reader to hear each cell announced with its header.
Screen reader users often pull up a list of all links on a page to navigate. Links labeled 'click here', 'read more', 'see here', or a bare URL give no indication of their destination out of context, so that list becomes useless. This pattern is common in docs that say things like 'for details, click here'. It also weakens the experience for sighted users scanning quickly and provides poor information scent for search engines.
Write link text that describes the destination so it makes sense on its own, such as 'see the authentication guide' instead of 'see here'. Avoid pasting raw URLs as visible link text for long addresses. In GitBook, select the meaningful words in your sentence and apply the link to that phrase. If two links on a page go to different places, give them distinct text so they are not confusable when read in isolation.
GitBook sites include a search box, and search is often how readers actually find content. If the results list or autocomplete suggestions can only be opened or selected with a mouse, keyboard and screen reader users are blocked from a primary navigation path. Common failure patterns on search widgets include results that cannot be reached with the arrow keys, no way to activate a result with Enter, or focus that is not moved sensibly when results appear or are dismissed.
Test the search experience on your published GitBook site using only the keyboard: tab to the search field, type a query, then confirm you can move through suggestions with the arrow keys and open one with Enter, and dismiss the panel with Escape. Most of search is provided by GitBook, so if you find a keyboard gap, report it to GitBook support and, in the meantime, ensure a clear, link-based navigation alternative exists in your sidebar.
Screen readers use the page's declared language to choose pronunciation rules. If the published HTML has no lang attribute, or it is set to a language that does not match the content, the text is read with the wrong accent and phonetics, which is hard to understand. This is easy to overlook because the editor looks the same regardless. Multilingual docs are especially affected when a passage in one language sits inside a page declared as another.
Set your space or site language in GitBook's settings so the published pages carry the correct lang attribute on the root element. View the live page source to confirm a value like lang="en" is present and accurate. If a page mixes languages, mark inline passages in the other language where the editor allows it, so 3.1.2 (language of parts) is also satisfied and those sections are pronounced correctly.
GitBook lets you embed OpenAPI and Swagger references, Loom and YouTube videos, CodeSandbox demos, and other third-party content via iframes. When an embedded frame has no accessible name (title), screen reader users hear only 'iframe' or 'frame' with no idea what it contains, and they may struggle to decide whether to enter it. Embedded API explorers in particular can be complex interactive regions that are confusing without an announced purpose.
Use captions or surrounding text to label each embed so its purpose is clear, for example a heading like 'Live API explorer' directly above an embedded OpenAPI reference. For video embeds (Loom, YouTube), provide captions and a text summary or transcript link, since muted or deaf users need the spoken content in text. Where GitBook exposes a title or caption field on the embed block, fill it in so the frame carries an accessible name.
Some teams add custom CSS to a GitBook site to match brand styling and, in the process, remove the visible outline that appears when an element receives keyboard focus. Without a visible focus indicator, keyboard users cannot tell which link, button, or sidebar item is currently selected, making the whole site effectively unusable without a mouse. This is one of the most common regressions introduced by well-meaning visual customization.
Never use outline:none on focusable elements without providing an equally visible replacement. If you add custom CSS, define a clear :focus-visible style with a high-contrast outline or box-shadow that stands out against your theme. Tab through your published site end to end and confirm every interactive element, including sidebar entries, links, and the copy-code button, shows an obvious focus state at each stop.
On mobile, docs sites pack many small controls into a tight space: sidebar expand and collapse toggles, the copy-code button on snippets, anchor-link icons, and theme switches. WCAG 2.2 adds target size (minimum) of 24 by 24 CSS pixels, with adequate spacing, so users with motor impairments or large fingers can activate controls without mis-tapping a neighbor. Tiny or tightly clustered icons are a frequent source of frustration on small screens.
Most of these controls are provided by GitBook, so test your live site on a real phone and note any control that is hard to tap accurately. Where you add custom CSS or custom buttons, ensure interactive targets are at least 24 by 24 CSS pixels (44 by 44 is a safer comfort target) with enough spacing between adjacent controls. If a built-in control is too small, report it to GitBook and avoid stacking your own tiny custom icons.
GitBook-Specific Tips
- Always audit the published site on its custom domain, not the editor: GitBook renders the reader experience (sidebar, search, theme colors, embeds) differently from the authoring view, and that rendered page is what your tools and users actually evaluate.
- Set the space or site language in GitBook settings so the published pages emit a correct lang attribute; view source on a live page to confirm a value like lang="en" is present.
- Test your brand color in both light and dark theme modes if you offer both, because a link color can pass contrast in one mode and fail in the other.
- When you embed an OpenAPI or Swagger reference, place a real heading and a sentence of context directly above it so screen reader users know what the interactive frame is before they enter it.
- Paste code and configuration as real text in code blocks, never as screenshots, so snippets stay selectable, copyable, translatable, and readable by assistive technology.
- If you add custom CSS to match branding, keep a high-contrast :focus-visible style and tab through the whole site to confirm you have not removed the visible keyboard focus indicator.
- Provide captions and a transcript or text summary for embedded Loom and YouTube videos, since the spoken content is otherwise unavailable to deaf, hard-of-hearing, and sound-off readers.
Recommended Tools
axe DevTools
Browser extension that scans your published GitBook page for WCAG issues like missing alt text, low contrast, and unlabeled controls, with guidance on each finding.
WAVE
Visual evaluation tool from WebAIM that overlays your live docs page with icons for headings, alt text, contrast, and structural problems, ideal for non-developers.
Lighthouse
Built into Chrome DevTools, Lighthouse runs an automated accessibility audit of a GitBook page and reports a score with a checklist of issues to investigate.
NVDA
Free, open-source screen reader for Windows used to verify how your GitBook sidebar, headings, tables, search, and embeds are actually announced to assistive technology users.
GitBook accessibility responsibilities: platform vs author
| Plugin / Tool | Area | What GitBook provides | What you control | Key WCAG criteria |
|---|---|---|---|---|
| Page structure & navigation Sidebar, layout, and on-page outline are platform-rendered, but heading order is yours. | Structure & navigation | Sidebar, layout, on-page outline, search UI | Correct heading order, descriptive link text | 1.3.1, 2.4.4 |
| Visual design & theme You choose brand colors and any custom CSS, which can help or break contrast and focus. | Visual design & theme | Default theme, light/dark modes | Brand color contrast, visible focus styles | 1.4.3, 2.4.7 |
| Content & media Authoring discipline drives most of these outcomes. | Content & media | Image, table, and code block rendering | Alt text, table headers, real-text code, captions | 1.1.1, 1.3.1 |
| Embeds & integrations Frames need an accessible name and surrounding context you supply. | Embeds & integrations | Embed blocks for OpenAPI, video, demos | Titles, captions, transcripts, nearby context | 4.1.2, 1.2.2 |
Frequently Asked Questions
Does GitBook make my documentation automatically WCAG compliant?
No platform makes you automatically compliant. GitBook handles much of the page structure, sidebar, and theme, which gives you a reasonable foundation, but conformance depends heavily on your own content choices: alt text on screenshots, correct heading order, readable color contrast, descriptive links, and proper table headers. Embedded videos and API references also need accessible labels and captions you provide. Treat GitBook as a helpful base, then audit your published site with the tools in this checklist and fix the authoring-level issues before claiming WCAG 2.1 AA conformance.
Which WCAG standard do EAA and ADA expectations point to for my docs?
For the European Accessibility Act (EAA) and most ADA-related expectations in the United States, WCAG 2.1 Level AA is the practical baseline, and it is the standard this checklist targets. WCAG 2.2 adds a few criteria worth adopting for docs sites, notably visible focus appearance, minimum target size for small controls, and redundant entry for forms. Aiming for 2.1 AA, plus the most relevant 2.2 additions, puts your GitBook site in a strong position. This is general guidance, not legal advice; consult a qualified professional for your specific obligations.
How do I add alt text to images in GitBook?
When you insert or select an image block in the GitBook editor, use the image options to add an alternative text description. Write a concise sentence that conveys what the image communicates in context, for example what a highlighted button does, rather than a filename or the word screenshot. Keep it under roughly 125 characters and avoid duplicating any visible caption. For images that are purely decorative and add no information, use empty alt text so screen readers skip them. Go back and add alt text to older screenshots too, since it helps every reader.
Where do I check and fix color contrast on a GitBook site?
Contrast problems on GitBook usually come from the brand or accent color applied to links and buttons. Open your published page and use a contrast checker or the axe DevTools and WAVE extensions to measure link and body text against the background. Aim for at least 4.5:1 for normal text and 3:1 for large text and meaningful interface boundaries. If your brand color fails, adjust the shade used for text and interactive elements in GitBook's theme settings, keeping the lighter tone only for large logos, and re-test both light and dark modes.
Further Reading
- Accessible Documents Word Google Docs
- Accessible Tables Guide
- Accessible Navigation Guide
- Color Contrast Guide
- Click Here Read More Link Accessibility
Other CMS Checklists
- Mintlify Accessibility Checklist
- Docusaurus Accessibility Checklist
- Notion-sites Accessibility Checklist
Get our free accessibility toolkit
We're building a simple accessibility checker for non-developers. Join the waitlist for early access and a free EAA compliance checklist.
No spam. Unsubscribe anytime.