-
Notifications
You must be signed in to change notification settings - Fork 266
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
Update input-purposes for syntax highlighting #3380
Conversation
[PR 2614](#2614) includes this change, but also adds a normative change. This PR is just to add syntax highlighting support.
@alastc per today's backlog meeting, here's Input Purposes without the one-time-password line |
@iadawn I think this is editorial (code change not content), but it's in the normative doc. I assume we don't need group approval (due to it being editorial), but won't appear until 2.2 is re-published? |
@alastc I have moved this to the Done column, even though it is not merged -- and cannot be until republish, I believe. We don't really have another column to put it. I'm just going to leave you assigned to it for now. |
Regarding the conversation in AGWG today around the
References:
The nearest ancestor, the The reason to add the dfn is to semantically indicate this is a term that is being defined, which is what is happening here. For a dfn, unlike an |
While it could be valid - my understanding is that the parent p, section, or dd/dt would become the implied definition per the spec and information in that MDN article. I think that is why we would need to use a description list if we used dfn otherwise the definition would include too much. |
I've used the dfn for over 15 years and it is applicable in a list item. Dan Cederholm and Ethan Marcott's books use the pattern quite a lot. It's only necessary for the definition to be included in the ancestor, which it is. |
is there any actual benefit (for users, right now, not just theoretically, and not just "when i then look at the underlying markup" but actually exposed in some user-friendly way with current tools) to using |
For some of us with cognitive considerations it helps. It's also useful programmatically for the non-humans parsing content. I also read that screen reader users can choose settings to leverage the dfn and abbr tags. |
that falls mostly under the "theoretical" part, unless there's actual examples out there of such tools.
that's news to me, I have to admit. would be good to know if this is actually happening, rather than again just being theoretical. purely for the |
I was unable to find much documentation about support for the Do you see the existing changes proposed in this PR -- replacing the |
The
Thank you for your kind response! |
Discussed on call, |
Hi Jen,
I think something missing from the conversation is what the That isn't very explicit in the specs, but if you look at the examples it become clearer. That usage is not what we're doing in WCAG, as each is the only instance of the term on the page. Given that each item is intended to be an attribute value in HTML code, the Using a definition list is potentially an alternative, but it would be styled like the other instances (e.g. 1.1.1), I don't see any practical benefit from changing the current PR. |
I'm not challenging the I'm saying that it can be wrapped in a The This is a separate issue from changing |
@jenstrickland please open a new issue for your recommendation to use |
✅ Deploy Preview for wcag2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
In section 7 of WCAG 2.1/2.2, there is a list of "Input Purposes for User Interface Components".
This change simply updates the code from using
<strong>
tags to<code>
tags, including the language attribute so they are styled as HTML.The related PR 2614 includes this change, but also added a normative change. This PR is just to add syntax highlighting support.
This would apply to WCAG 2.1 and 2.2.
Preview | Diff