Skip to content

Commit

Permalink
Deprecate the mispelled requireContextRole. Replace with requiredCont…
Browse files Browse the repository at this point in the history
…extRole.
  • Loading branch information
jessebeach committed Nov 26, 2019
1 parent 858607d commit 52f2535
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 52f2535

Please sign in to comment.