Enhancing Accessibility at Stack Overflow

Addressing Accessibility Challenges

At Stack Overflow, accessibility has not always been a priority. Our teams often dealt with issues reactively, waiting for users to report problems rather than proactively addressing them. This approach, unsurprisingly, led to a lack of clear accessibility targets. Leadership hesitated to invest fully in accessibility without visible progress, making it difficult to prioritize it alongside other initiatives. This was further compounded by our communities and customers, some of whom had legal requirements for accessibility, expressing concerns over our commitment.

Recognizing the need for improvement, we set out to establish trust with our communities and clients by demonstrating a strong commitment to accessibility. Our goal was to proactively enhance the accessibility of our products, making it a foundational aspect of our development process.

Establishing Clear Accessibility Targets

The first step in our journey was to set clear and documented accessibility targets based on the Web Content Accessibility Guidelines (WCAG). These guidelines provided us with concrete benchmarks to measure our products against, offering clarity to our teams on what accessibility meant in practice.

One of the challenges we faced was with Stack Overflow's signature orange color, which did not meet the WCAG contrast requirements. We adopted the Advanced Perceptual Contrast Algorithm (APCA) to address this, allowing us to maintain our brand color while ensuring accessibility. We formalized these targets through an Architectural Decision Record (ADR), making accessibility a non-negotiable part of our development process.

Measuring Accessibility Progress

With targets in place, we needed to measure our progress consistently. We created a synthetic signal to track our adherence to accessibility targets, giving us a clear indication of our direction. We used Axecore, an automated tool to calculate accessibility scores for our product pages, though it only caught about 50-57% of issues.

To cover the gaps, we established manual scores from various sources, including third-party auditors, community feedback, and client-reported issues. This comprehensive view of our product's accessibility was crucial for identifying areas needing improvement.

Building an Accessibility Dashboard

We developed an accessibility dashboard to make all data accessible and actionable. This hub allowed teams, the community, and clients to track progress and hold us accountable. Our dashboard displayed score trends, highlighted accessibility scores by page, and detailed issues identified through automated checks.

We employed GitHub workflows to automate checks using Axe Engine and Playwright. The results were transformed into metrics and uploaded to our accessibility platform. Manual issues were logged on a centralized board, triaged by accessibility champions, and incorporated into our manual accessibility score.

Improving the Design System

We prioritized enhancing our design system, as it serves as the foundation for user interfaces across our products. By improving focus styles and implementing skip links, we ensured better navigation, particularly for keyboard-only users. A new color palette developed using APCA was also rolled out, addressing previous contrast issues.

Our efforts included contributing back to open source by creating an APCA compliance rule for the Axe core engine, enabling automated color contrast testing across our pages.

Embedding Accessibility Early in Development

We aimed to integrate accessibility considerations early in the development process. This involved establishing accessibility champions within each team, responsible for spreading knowledge and meeting regularly with other champions. We worked with leadership to prioritize accessibility, creating a lean checklist that appeared as a comment when UI changes were detected in pull requests.

We developed short internal video trainings, dubbed accessibility bites, offering practical tips for engineers and designers. We also set accessibility service level objectives, using automated scores as service level indicators. A drop in score would trigger a priority incident, prompting swift action to address regressions.

Key Learnings and Ongoing Commitment

Through our journey, we learned the importance of setting clear accessibility targets and securing organizational commitment. Tracking progress motivated teams and demonstrated our dedication to accessibility to both leadership and customers. Integrating accessibility early in the development process and creating supportive tools and processes helped prevent regressions.

We recognize that accessibility work is never complete; it requires continuous refinement and user testing to meet evolving needs. Our approach at Stack Overflow serves as a model for other companies looking to prioritize accessibility, emphasizing that it's a continuous journey of improvement.

Watch full talk with demos and examples:

Watch video on a separate page
Rate this content
Bookmark

This talk has been presented at JSNation US 2024, check out the latest edition of this JavaScript Conference.

FAQ

The accessibility dashboard provides a central hub for tracking accessibility progress, offering actionable insights for teams, and displaying score trends and identified issues.

Stack Overflow encourages early accessibility consideration by establishing accessibility champions, using a lean accessibility checklist, and providing internal training videos called 'accessibility bites.'

Accessibility champions spread accessibility knowledge, meet regularly to discuss improvements, and ensure that accessibility is prioritized across teams.

Accessibility regressions are managed through service level objectives, where a drop in accessibility score triggers a priority incident, requiring resolution within a seven-day window.

The primary focus is to improve the accessibility of Stack Overflow products by setting clear accessibility targets, measuring progress, and embedding accessibility considerations early in the development process.

Stack Overflow uses a combination of automated tools like Axecore and manual assessments from third-party auditors, community feedback, and client reports to measure accessibility scores.

The design system team leads the accessibility initiative due to their expertise, setting standards for accessibility across the organization and embedding accessibility in the design process.

APCA was adopted because it provides a more accurate assessment of color contrast, allowing Stack Overflow to maintain its signature orange color while meeting accessibility standards.

Stack Overflow uses Axecore and GitHub workflows triggered daily to run accessibility checks against important product pages, transforming results into metrics for tracking.

Key learnings include setting clear accessibility targets, securing organizational commitment, measuring and tracking progress, shifting accessibility considerations left, and continuously improving accessibility efforts.

Giamir Buoncristiani
Giamir Buoncristiani
15 min
21 Nov, 2024

Comments

Sign in or register to post your comment.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

A Framework for Managing Technical Debt
TechLead Conference 2023TechLead Conference 2023
35 min
A Framework for Managing Technical Debt
Top Content
Today's Talk discusses the importance of managing technical debt through refactoring practices, prioritization, and planning. Successful refactoring requires establishing guidelines, maintaining an inventory, and implementing a process. Celebrating success and ensuring resilience are key to building a strong refactoring culture. Visibility, support, and transparent communication are crucial for addressing technical debt effectively. The team's responsibilities, operating style, and availability should be transparent to product managers.
Debugging JS
React Summit 2023React Summit 2023
24 min
Debugging JS
Top Content
Watch video: Debugging JS
Debugging JavaScript is a crucial skill that is often overlooked in the industry. It is important to understand the problem, reproduce the issue, and identify the root cause. Having a variety of debugging tools and techniques, such as console methods and graphical debuggers, is beneficial. Replay is a time-traveling debugger for JavaScript that allows users to record and inspect bugs. It works with Redux, plain React, and even minified code with the help of source maps.
Building a Voice-Enabled AI Assistant With Javascript
JSNation 2023JSNation 2023
21 min
Building a Voice-Enabled AI Assistant With Javascript
Top Content
This Talk discusses building a voice-activated AI assistant using web APIs and JavaScript. It covers using the Web Speech API for speech recognition and the speech synthesis API for text to speech. The speaker demonstrates how to communicate with the Open AI API and handle the response. The Talk also explores enabling speech recognition and addressing the user. The speaker concludes by mentioning the possibility of creating a product out of the project and using Tauri for native desktop-like experiences.
A Practical Guide for Migrating to Server Components
React Advanced 2023React Advanced 2023
28 min
A Practical Guide for Migrating to Server Components
Top Content
Watch video: A Practical Guide for Migrating to Server Components
React query version five is live and we'll be discussing the migration process to server components using Next.js and React Query. The process involves planning, preparing, and setting up server components, migrating pages, adding layouts, and moving components to the server. We'll also explore the benefits of server components such as reducing JavaScript shipping, enabling powerful caching, and leveraging the features of the app router. Additionally, we'll cover topics like handling authentication, rendering in server components, and the impact on server load and costs.
Power Fixing React Performance Woes
React Advanced 2023React Advanced 2023
22 min
Power Fixing React Performance Woes
Top Content
Watch video: Power Fixing React Performance Woes
This Talk discusses various strategies to improve React performance, including lazy loading iframes, analyzing and optimizing bundles, fixing barrel exports and tree shaking, removing dead code, and caching expensive computations. The speaker shares their experience in identifying and addressing performance issues in a real-world application. They also highlight the importance of regularly auditing webpack and bundle analyzers, using tools like Knip to find unused code, and contributing improvements to open source libraries.
Monolith to Micro-Frontends
React Advanced 2022React Advanced 2022
22 min
Monolith to Micro-Frontends
Top Content
Microfrontends are considered as a solution to the problems of exponential growth, code duplication, and unclear ownership in older applications. Transitioning from a monolith to microfrontends involves decoupling the system and exploring options like a modular monolith. Microfrontends enable independent deployments and runtime composition, but there is a discussion about the alternative of keeping an integrated application composed at runtime. Choosing a composition model and a router are crucial decisions in the technical plan. The Strangler pattern and the reverse Strangler pattern are used to gradually replace parts of the monolith with the new application.

Workshops on related topic

Build Modern Applications Using GraphQL and Javascript
Node Congress 2024Node Congress 2024
152 min
Build Modern Applications Using GraphQL and Javascript
Featured Workshop
Emanuel Scirlet
Miguel Henriques
2 authors
Come and learn how you can supercharge your modern and secure applications using GraphQL and Javascript. In this workshop we will build a GraphQL API and we will demonstrate the benefits of the query language for APIs and what use cases that are fit for it. Basic Javascript knowledge required.
Building a Shopify App with React & Node
React Summit Remote Edition 2021React Summit Remote Edition 2021
87 min
Building a Shopify App with React & Node
Top Content
WorkshopFree
Jennifer Gray
Hanna Chen
2 authors
Shopify merchants have a diverse set of needs, and developers have a unique opportunity to meet those needs building apps. Building an app can be tough work but Shopify has created a set of tools and resources to help you build out a seamless app experience as quickly as possible. Get hands on experience building an embedded Shopify app using the Shopify App CLI, Polaris and Shopify App Bridge.We’ll show you how to create an app that accesses information from a development store and can run in your local environment.
Build a chat room with Appwrite and React
JSNation 2022JSNation 2022
41 min
Build a chat room with Appwrite and React
WorkshopFree
Wess Cope
Wess Cope
API's/Backends are difficult and we need websockets. You will be using VS Code as your editor, Parcel.js, Chakra-ui, React, React Icons, and Appwrite. By the end of this workshop, you will have the knowledge to build a real-time app using Appwrite and zero API development. Follow along and you'll have an awesome chat app to show off!
Hard GraphQL Problems at Shopify
GraphQL Galaxy 2021GraphQL Galaxy 2021
164 min
Hard GraphQL Problems at Shopify
WorkshopFree
Rebecca Friedman
Jonathan Baker
Alex Ackerman
Théo Ben Hassen
 Greg MacWilliam
5 authors
At Shopify scale, we solve some pretty hard problems. In this workshop, five different speakers will outline some of the challenges we’ve faced, and how we’ve overcome them.

Table of contents:
1 - The infamous "N+1" problem: Jonathan Baker - Let's talk about what it is, why it is a problem, and how Shopify handles it at scale across several GraphQL APIs.
2 - Contextualizing GraphQL APIs: Alex Ackerman - How and why we decided to use directives. I’ll share what directives are, which directives are available out of the box, and how to create custom directives.
3 - Faster GraphQL queries for mobile clients: Theo Ben Hassen - As your mobile app grows, so will your GraphQL queries. In this talk, I will go over diverse strategies to make your queries faster and more effective.
4 - Building tomorrow’s product today: Greg MacWilliam - How Shopify adopts future features in today’s code.
5 - Managing large APIs effectively: Rebecca Friedman - We have thousands of developers at Shopify. Let’s take a look at how we’re ensuring the quality and consistency of our GraphQL APIs with so many contributors.
0 To Auth In An Hour For Your JavaScript App
JSNation 2023JSNation 2023
57 min
0 To Auth In An Hour For Your JavaScript App
WorkshopFree
Asaf Shen
Asaf Shen
Passwordless authentication may seem complex, but it is simple to add it to any app using the right tool.
We will enhance a full-stack JS application (Node.js backend + Vanilla JS frontend) to authenticate users with One Time Passwords (email) and OAuth, including:
- User authentication – Managing user interactions, returning session / refresh JWTs- Session management and validation – Storing the session securely for subsequent client requests, validating / refreshing sessions
At the end of the workshop, we will also touch on another approach to code authentication using frontend Descope Flows (drag-and-drop workflows), while keeping only session validation in the backend. With this, we will also show how easy it is to enable biometrics and other passwordless authentication methods.