Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new ARIA roles #200

Closed
14 of 15 tasks
scottaohara opened this issue Dec 5, 2019 · 6 comments · Fixed by #392
Closed
14 of 15 tasks

Add new ARIA roles #200

scottaohara opened this issue Dec 5, 2019 · 6 comments · Fixed by #392
Labels
Allowed aria-* attributes Allowed roles Pertaining to the allowed roles of HTML elements ARIA 1.2 related Issues directly related to updates in ARIA 1.2

Comments

@scottaohara
Copy link
Member

scottaohara commented Dec 5, 2019

The following roles are new in ARIA 1.2 and need to be added to the spec

  • blockquote => <blockquote>
  • caption => <caption> and <figcaption>
  • code => <code>
  • definition => revised, no HTML element match
  • deletion => <del>
  • emphasis => <em>
  • generic => <div>, <span>, & other user facing elements with no meaningful ARIA role.
  • insertion => <ins>
  • meter => <meter>
  • paragraph => <p>
  • strong => <strong>
  • subscript => <sub>
  • superscript => <sup>
  • term => <dfn> and not <dt>
  • time => <time>

(removed label and legend these likely won't be added anymore)

ARIA 1.3 roles

  • mark => <mark>
  • suggestion => no HTML element
  • comment => no HTML element

The following roles may be changed in their naming

  • associationlist => <dl>
  • associationlistkey => <dt>
  • associationlistvalue => <dd>
@masi
Copy link

masi commented Feb 13, 2021

The above list of new roles for 1.2 includes roles in the draft that did not made it into the final version:

  • definition
  • emphasis
  • label
  • legend
  • strong
  • term

@stevefaulkner
Copy link
Collaborator

The above list of new roles for 1.2 includes roles in the draft that did not made it into the final version

Is there a final version? I thought 1.2 was still in progress. The latest editors draft includes some of the above

@masi
Copy link

masi commented Feb 13, 2021

Stupid me! Of course 1.2 is still a WD. I am ahead of time that's all :)

They made it into the mentioned version. Now ARIA really re-implements HTML in roles.

@scottaohara scottaohara added this to the ARIA 1.2 Related milestone Feb 18, 2021
@scottaohara scottaohara modified the milestones: ARIA 1.2 Related, ARIA in HTML: Next, ARIA1.2 related Sep 20, 2021
@scottaohara scottaohara added ARIA 1.2 related Issues directly related to updates in ARIA 1.2 Allowed aria-* attributes Allowed roles Pertaining to the allowed roles of HTML elements labels Sep 20, 2021
@scottaohara
Copy link
Member Author

Adding allowed aria-* attributes and allowed roles labels as the updated implicit roles may require some changes for certain elements.

scottaohara added a commit that referenced this issue Jan 10, 2022
closes #200

Adds `blockquote`, `caption`, `code`, `deletion`, `emphasis`, `generic`, `insertion`, `meter`, `paragraph`, `strong`, `subscript`, `superscript`, `time`.

Updates links from referencing ARIA 1.1 to ARIA 1.2

changes / corrects `dd` and `dt` to not reference an ARIA role, as `definition` and `term` were corrected in ARIA 1.2 to not be associated with these elements.

TODO:
more elements map to `generic`.  

These are non-normative updates, since these roles are defined in ARIA 1.2/CORE AAM and the HTML mappings in HTML AAM, respectively.
@WW3
Copy link

WW3 commented Feb 8, 2022

Different roles to distinguish between ordered and unordered lists?

@scottaohara
Copy link
Member Author

@WW3 that wouldn't be defined here. See w3c/aria#961 instead

scottaohara added a commit that referenced this issue Mar 12, 2022
closes #200

* add new aria 1.2 roles `blockquote`, `caption`, `code`, `deletion`, `emphasis`, `generic`, `insertion`, `meter`, `paragraph`, `strong`, `subscript`, `superscript`, `time`.
* Updates links from referencing ARIA 1.1 to ARIA 1.2
* changes / corrects `dd` and `dt` to not reference an ARIA role, as `definition` and `term` were corrected in ARIA 1.2 to not be associated with these elements.

TODO:
more elements map to `generic`.  

These are non-normative updates, since these roles are defined in ARIA 1.2/CORE AAM and the HTML mappings in HTML AAM, respectively.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Allowed aria-* attributes Allowed roles Pertaining to the allowed roles of HTML elements ARIA 1.2 related Issues directly related to updates in ARIA 1.2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants