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

Flesh out role=note #1629

Closed
brennanyoung opened this issue Oct 29, 2021 · 5 comments · Fixed by #1639
Closed

Flesh out role=note #1629

brennanyoung opened this issue Oct 29, 2021 · 5 comments · Fixed by #1639
Assignees
Labels
clarification clarifying or correcting language that is either confusing, misleading or under-specified
Milestone

Comments

@brennanyoung
Copy link
Contributor

brennanyoung commented Oct 29, 2021

I'm finding the spec for the "note" role quite vague and thin on detail. I think I need to use this role quite a bit, but I am simply not certain.

The preamble currently consists of a single line of text, which could mean many or few things, depending on interpretation.

"A section whose content is parenthetic or ancillary to the main content of the resource."

I'm particularly bothered by the use of the word "main" here. Does this mean role=main? Does "resource" mean the note itself? The page?

I have put in the hours with Funk and Lewis, so "parenthetic or ancillary" don't have me reaching for a dictionary, however it strikes me that "parenthetic or ancillary" is not exactly "plain language". Can we find replacements for these that doesn't sound like jargon, or perhaps offer some definitions?

That's the copy mentioned. Now for the actual spec.

The following semantic cases may or may not call for a "note", but the spec leaves plenty of room for doubt.

  • An note in (part of) the page that is not the main content (e.g. contentinfo or navigation)
  • An annotation of a specific element or part
  • A comment by an editor about a particular chunk of copy
  • A notification
  • A note with a close button

If "note" is the wrong thing for annotations. Do we need another role, or is there already a better candidate today?

Also, for authoring practices:

  • How do notes best fit into read order?
  • If annotations are notes, should the note come before/after the element they annotate?
  • Is there a class of notes that might be live regions by default? (e.g. notifications).
  • Would it be useful to include an example of an annotation using (say) aria-describedby to link the annotation to the annotated.
  • What other attribute might reliably connect an annotation to something?
@jnurthen jnurthen added this to the ARIA 1.3 milestone Nov 4, 2021
@jnurthen
Copy link
Member

jnurthen commented Nov 4, 2021

any interest in creating a PR for this @brennanyoung ?

@brennanyoung
Copy link
Contributor Author

brennanyoung commented Nov 5, 2021

Yes, I can do that. I assume that any/all of the semantic cases I mentioned could be 'notes'.

I'm thinking that some examples in Aria Practices might be the best way to handle this, but a brief list of example cases would be useful for guiding authors and UA/AT vendors.

I'd also like to get @aleventhal 's take on this, since he has put so much work into the aria-annotations spec, which seems to cover similar ground. A synthesis of the two would be ideal, if possible.

@brennanyoung
Copy link
Contributor Author

Unless there's a compellingly more appropriate aria attribute, I suggest that we explicitly recommend aria-details as the mechanism for associating an element with a note, since this matches the proposal in the aria-annotations spec.

AT/UA vendors might use such associations to provide useful kinds of interaction (e.g. to move focus from element to note).

@aleventhal
Copy link
Contributor

It may be slightly more nuanced. What do people think of this:

  • Use aria-details if the note is structured and there is a reason for the user to navigate to it and visit it.
  • Use aria-describedby if it's enough to represent the note as flat text

@scottaohara
Copy link
Member

i think those are good suggestions, aaron. i think they're in line with other comments i left on the pr

@jnurthen jnurthen linked a pull request Nov 18, 2021 that will close this issue
@scottaohara scottaohara self-assigned this Apr 28, 2022
@scottaohara scottaohara added the clarification clarifying or correcting language that is either confusing, misleading or under-specified label Jul 1, 2022
@pkra pkra closed this as completed in #1639 Mar 3, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification clarifying or correcting language that is either confusing, misleading or under-specified
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants