Skip to content

Instantly share code, notes, and snippets.

View sarahbethfederman's full-sized avatar

Sarah Federman sarahbethfederman

View GitHub Profile
<script>// Provides explicit indication of elements receiving focus through keyboard interaction rather than mouse or touch.
(function(document) {
var NAVIGATION_KEYS = [
'Tab',
'ArrowUp',
'ArrowRight',
'ArrowDown',
'ArrowLeft',
'Home',
'End',
import React from 'react';
const NAVIGATION_KEYS = [
'Tab',
'ArrowUp',
'ArrowRight',
'ArrowDown',
'ArrowLeft',
'Home',
'End',
Search Bar*
Inactive*
focused -> Active
Active
canceled -> Inactive
typed -> Text Entry
Empty*
Dropdown*
Inactive*
focus -> Focused
click -> Open
Focused
down arrow key -> Open
Open
arrow key -> Navigating
@sarahbethfederman
sarahbethfederman / Known issues.md
Last active January 11, 2019 04:45
Except from internal project readme
@sarahbethfederman
sarahbethfederman / package.json
Last active September 21, 2020 05:19
peer-dep
dependencies: {
"myPackageThatDependsOnReact": "^1.0.0",
"react": "16.0.0"
}
@sarahbethfederman
sarahbethfederman / package.json
Last active September 21, 2020 05:19
yarn-resolution-hack
"resolutions": {
"foo": "1.4.9"
}
@sarahbethfederman
sarahbethfederman / package.json
Last active September 21, 2020 05:20
yarn-resolution-2
"resolutions": {
"foo": "1.4.9"
}
@sarahbethfederman
sarahbethfederman / package.json
Last active September 21, 2020 05:20
yarn-resolutions-1
"resolutions": {
"babel/foo": "1.4.9",
}
@sarahbethfederman
sarahbethfederman / yarn.lock
Last active September 21, 2020 05:20
yarn-lock-update-2
"pkg-a@1.1.0"
version "1.1.0"
dependencies:
pkg-b "^2.1.0"
"pkg-c@1.0.0"
version "1.0.0"
dependencies:
pkg-b "^2.0.0"