Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcy Sutton marcysutton

View GitHub Profile
@marcysutton
marcysutton / a11y-slack-coc.md
Last active Oct 26, 2020 — forked from annalee/sample-slack-coc.md
A Code of Conduct for the A11y Slack Community
View a11y-slack-coc.md

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
View gist:f44699d9917472bf6d0304ec0ba130b7
### 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 Apr 10, 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 = () => (
<Layout>
<SEO title="Page two" />
@marcysutton
marcysutton / accessible-uis.md
Last active Jun 25, 2018
Accessible UIs - State of A11y
View accessible-uis.md

How to accessibility!

Definition of done

Education

  • Awareness
  • Design and UX
@marcysutton
marcysutton / ISSUE_TEMPLATE.md
Last active Mar 15, 2017
Accessibility Github Issue Template
View ISSUE_TEMPLATE.md

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'
require('load-grunt-tasks')(grunt)
grunt.initConfig({
mochaTest: {
test: {
options: {
@marcysutton
marcysutton / merging.md
Last active Nov 29, 2016
Bitbucket merge hell
View merging.md

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 = [
'<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 Oct 7, 2019
React A11y Testing
View enzyme-test.js
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 = {};
@marcysutton
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: https://github.com/dequelabs/axe-core
// Definitions by: Marcy Sutton <https://github.com/marcysutton>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare const enum Tags {"wcag2a", "wcag2aa", "section508", "best-practice"}
declare const enum Reporter {"v1", "v2"}
interface ElementContext {
You can’t perform that action at this time.