Skip to content

Instantly share code, notes, and snippets.

View marcysutton's full-sized avatar

Marcy Sutton-Todd marcysutton

View GitHub Profile
@marcysutton
marcysutton / a11y-testing.md
Last active December 1, 2023 20:33
Accessibility Testing for Engineers

Accessibility Testing for Engineers

Ahoy, engineering team!

I'd like to share some best practices around accessibility testing: what to look for, how to test it, how to balance the work with other priorities.

The important things to remember are that:

  1. Accessibility is about access for disabled people. Marginalizing their experience forever is continuous discrimination, full stop.
  2. The best time to start is now. The earlier you address it the better, but you can always iterate as you move forward.
@marcysutton
marcysutton / a11y-slack-coc.md
Last active February 28, 2024 09:23 — forked from annalee/sample-slack-coc.md
A Code of Conduct for the A11y Slack Community

A11y Slack Code of Conduct

Welcome!

A dedicated accessibility space to ask questions, help other people figure stuff out or chat about accessibility in general.

The current admins are:

  • Marcy Sutton (lead) - @marcysutton
### Keybase proof
I hereby claim:
* I am marcysutton on github.
* I am mazzafied (https://keybase.io/mazzafied) on keybase.
* I have a public key ASAqE9vmg_MMg22bQ7M91ivpYu17k9Z3dVtG_6RLXUsn1Qo
To claim this, I am signing this object:
@marcysutton
marcysutton / example-page.js
Last active December 31, 2020 13:16
Gatsby Sass Recipe
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
import "./styles.scss"
const SecondPage = () => (
<Layout>
<SEO title="Page two" />
@marcysutton
marcysutton / accessible-uis.md
Last active June 25, 2018 14:32
Accessible UIs - State of A11y

How to accessibility!

Definition of done

Education

  • Awareness
  • Design and UX
@marcysutton
marcysutton / ISSUE_TEMPLATE.md
Last active May 22, 2023 23:23
Accessibility Github Issue Template

Issue Description

// What is the nature of the issue? Which browser and/or Assistive Technology?

How to reproduce / Current behavior

// Step-by-step instructions explaining how to reproduce the problem. Environment required, explicit identification of the component in question

How to validate (Acceptance Criteria) / Expected behavior

// A set of assumptions which, when tested, verify that the accessibility requirement was met.

Additional information

@marcysutton
marcysutton / Gruntfile.js
Created March 3, 2017 18:06
JSDom Helper
module.exports = function (grunt) {
'use strict'
require('load-grunt-tasks')(grunt)
grunt.initConfig({
mochaTest: {
test: {
options: {
@marcysutton
marcysutton / merging.md
Last active November 29, 2016 23:46
Bitbucket merge hell

Merging a pull request

To apply a pull request, make sure your local develop branch is up to date. Then, create a new branch for that pull request:

git checkout -b some-user-feature

Run the following commands to apply all commits from that pull request on top of your branch's local history:

var jsdom = require('jsdom');
// Some html page
var html = [
'<html>',
'<body>',
'<p>An image without an alt tag! <img src="some.jpg" /></p>',
'<h2>Not an h1</h2>',
'<h5>blabla</h5>',
'<h4></h4>',
@marcysutton
marcysutton / enzyme-test.js
Last active August 23, 2021 08:20
React A11y Testing
import {expect} from 'chai';
import App from '../app/components/App';
import a11yHelper from "./a11yHelper";
describe('Accessibility', function () {
this.timeout(10000);
it('Has no errors', function () {
let config = {};