refactor(template-no-abstract-roles): source abstract-role list from aria-query#25
Closed
refactor(template-no-abstract-roles): source abstract-role list from aria-query#25
Conversation
…aria-query Replaces a hand-maintained list of 12 abstract ARIA roles with a derivation from aria-query's role taxonomy (role.abstract === true). aria-query is already a dependency. Future WAI-ARIA additions of abstract roles flow in automatically on aria-query upgrade instead of requiring a hand edit here. No behavioural change — the derived set is identical to the hand list today.
🏎️ Benchmark Comparison
Full mitata output |
Owner
Author
|
Moved upstream to ember-cli#2721. See that PR for ongoing review. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the hand-maintained list of 12 abstract ARIA roles with a derivation from
aria-query:aria-queryis already a dependency (used by several other rules; introduced consistently via bug fix PRs #9, #11, #14). Future WAI-ARIA additions of abstract roles flow in automatically on aria-query upgrade instead of requiring a hand edit here.Before/after
Hand list (12 roles):
command,composite,input,landmark,range,roletype,section,sectionhead,select,structure,widget,window.aria-query'sroles.keys().filter(r => roles.get(r).abstract)→ same 12. No behavioural change.Spec reference
Part of a cleanup campaign migrating hand-maintained lists in this plugin to authoritative sources where available. See also #11 (aria-unsupported-elements → aria-query
dom.reserved), #14 (no-invalid-role → aria-query).