Skip to content

Commit

Permalink
Merge pull request #31 from A11yance/deprecate-requireContextRole
Browse files Browse the repository at this point in the history
Deprecate the mispelled requireContextRole. Replace with requiredContextRole
  • Loading branch information
jessebeach committed Nov 26, 2019
2 parents 858607d + 52f2535 commit 900cfd9
Show file tree
Hide file tree
Showing 122 changed files with 286 additions and 123 deletions.
5 changes: 3 additions & 2 deletions scripts/breakUpAriaJSON.js
Expand Up @@ -135,12 +135,14 @@ fs.readFile(path.join('scripts/roles.json'), {
const accumulation = superClassWalker(superClasses);
const output = accumulatedSuperClasses.set(name, accumulation);
// console.log(`${name} => ${accumulatedSuperClasses.get(name).map(group => `[${group}]`).join('\n')}`);
return output;
});

Object.keys(aria)
.forEach((name) => {
const camelName = createCamelName(name);
// Deprecate requireContextRole prop. Replace with requiredContextRole.
// requireContextRole will be removed in a future version.
aria[name]['requireContextRole'] = aria[name]['requiredContextRole'];

const file = [
'/**',
Expand All @@ -149,7 +151,6 @@ fs.readFile(path.join('scripts/roles.json'), {
`const ${camelName}: ARIARoleDefinition = {`,
Object.keys(aria[name])
.sort()
.filter((prop) => !['interactive'].includes(prop))
.filter((prop) => {
// Create a set of all the props of the super classes.
if (prop === 'props') {
Expand Down

0 comments on commit 900cfd9

Please sign in to comment.