Skip to content

Instantly share code, notes, and snippets.


Marcy Sutton marcysutton

View GitHub Profile
marcysutton /
Last active Dec 14, 2020 — forked from annalee/
A Code of Conduct for the A11y Slack Community

A11y Slack Code of Conduct


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
View gist:f44699d9917472bf6d0304ec0ba130b7
### Keybase proof
I hereby claim:
* I am marcysutton on github.
* I am mazzafied ( on keybase.
* I have a public key ASAqE9vmg_MMg22bQ7M91ivpYu17k9Z3dVtG_6RLXUsn1Qo
To claim this, I am signing this object:
marcysutton / example-page.js
Last active Dec 31, 2020
Gatsby Sass Recipe
View example-page.js
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
import "./styles.scss"
const SecondPage = () => (
<SEO title="Page two" />
marcysutton /
Last active Jun 25, 2018
Accessible UIs - State of A11y

How to accessibility!

Definition of done


  • Awareness
  • Design and UX
marcysutton /
Last active Mar 15, 2017
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

View Gruntfile.js
module.exports = function (grunt) {
'use strict'
mochaTest: {
test: {
options: {
marcysutton /
Last active Nov 29, 2016
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:

View gist:c221a5b855bccbfd32bc7442738e3d49
var jsdom = require('jsdom');
// Some html page
var html = [
'<p>An image without an alt tag! <img src="some.jpg" /></p>',
'<h2>Not an h1</h2>',
marcysutton / enzyme-test.js
Last active Jan 5, 2021
React A11y Testing
View enzyme-test.js
import {expect} from 'chai';
import App from '../app/components/App';
import a11yHelper from "./a11yHelper";
describe('Accessibility', function () {
it('Has no errors', function () {
let config = {};
marcysutton / axe-core.d.ts
Created Jul 19, 2016
Typescript attempt #1
View axe-core.d.ts
// Type definitions for axe-core 2.0.5
// Project:
// Definitions by: Marcy Sutton <>
// Definitions:
declare const enum Tags {"wcag2a", "wcag2aa", "section508", "best-practice"}
declare const enum Reporter {"v1", "v2"}
interface ElementContext {