This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6.2.0 / 2019-01-25 | |
================= | |
- 5650674 [new rule] control-has-associated-label checks interactives for a label | |
- f234698 [docs] add How to manage IDs | |
- 9924d03 [docs] document jsx-a11y/label-has-associated-control assert option | |
- 77b9870 [docs] Add newlines below headings | |
- 8244e43 [docs] Add syntax highlighting to example | |
- 26f41c8 [docs] Change explanation for role="presentation" escape hatch | |
- 33a1f94 [fix] - Purely decorative emojis do not need descriptions. | |
- 29d20f7 [fix] (package): update emoji-regex to version 7.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ | |
"alert", | |
{ | |
"abstract":false, | |
"accessibleNameRequired":false, | |
"baseConcepts":[ | |
], | |
"childrenPresentational":false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Grid extends React.Component { | |
_timeoutID; | |
constructor() { | |
this.state = { | |
isManagingFocus: false, | |
}; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// see https://github.com/facebook/flow/issues/1414 | |
const trackChildren: Array<any> = node.children.filter((child) => { | |
if (child.type !== 'JSXElement') { | |
return false; | |
} | |
return elementType(child.openingElement) === 'track'; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $FlowFixMe https://github.com/facebook/flow/issues/1414 | |
const trackChildren: Array<JSXElement> = node.children.filter(( | |
child: Node, | |
) => { | |
if (child.type !== 'JSXElement') { | |
return false; | |
} | |
return elementType(child.openingElement) === 'track'; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isNonInteractiveElement | |
JSX Components (no tagName) | |
✓ should identify them as interactive elements (3ms) | |
non-interactive elements | |
✓ should identify `a` as a non-interactive element (1ms) | |
✓ should identify `area` as a non-interactive element (1ms) | |
✓ should identify `article` as a non-interactive element | |
✓ should identify `dd` as a non-interactive element (1ms) | |
✓ should identify `dfn` as a non-interactive element | |
✓ should identify `dt` as a non-interactive element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
non-interactive elements | |
✓ should identify `a` as a non-interactive element (1ms) | |
✓ should identify `area` as a non-interactive element | |
✓ should identify `article` as a non-interactive element (1ms) | |
✓ should identify `dd` as a non-interactive element | |
✓ should identify `dfn` as a non-interactive element | |
✓ should identify `dt` as a non-interactive element | |
✓ should identify `fieldset` as a non-interactive element | |
✓ should identify `figure` as a non-interactive element | |
✓ should identify `frame` as a non-interactive element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSX Components (no tagName) | |
✓ should identify them as interactive elements (2ms) | |
non-interactive elements | |
✓ should identify `a` as a non-interactive element (1ms) | |
✓ should identify `area` as a non-interactive element | |
✓ should identify `article` as a non-interactive element | |
✓ should identify `dd` as a non-interactive element | |
✓ should identify `dfn` as a non-interactive element | |
✓ should identify `dt` as a non-interactive element | |
✓ should identify `fieldset` as a non-interactive element |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var colors = require('colors/safe'); | |
function isort (arr) { | |
for (var j = 1, il = arr.length; j < il; j++) { | |
var key = arr[j]; | |
var i = j - 1; | |
while (i > -1 && arr[i] > key) { | |
var left = arr.slice(i, i + 1); | |
var right = arr.slice(i + 1, i + 2); | |
var start = arr.slice(0, i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const typeTagOf = (value) => Object.prototype.toString.call(value).slice(8, -1); | |
console.log(typeTagOf({})); // 'Object' | |
console.log(typeTagOf([])); // 'Array' | |
console.log(typeTagOf(function () {})); // 'Function' |
NewerOlder