-
Notifications
You must be signed in to change notification settings - Fork 271
Clean 'New in 2.2' code #281
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for wai-intro-wcag ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@shawna-slh What do you think of this cleaned version (changes listed in the description)? |
Thanks @remibetin ! brief notes below. we can discuss useful. wcag pull quote
Understanding links(e.g., "Understanding Focus Not Obscured (Minimum)")
h4
|
I like the idea of having a WCAG reference element. However I do have a few thoughts:
|
hummm... if it's a visual design component, then generic name is better, yes? Wouldn't we use 'wcag-reference' only if it was actually pulling data? |
It is a design component for a specific purpose. TBH the best way to do it is to have a blockquote design component and a wcag-reference component that (possibly) calls the blockquote element. And ideally it would be pulling data... but that is a bit too much to ask for at the moment :) |
@iadawn I agree with @shawna-slh that this new design is meant to be as generic as possible. The current blockquote component has been designed for quoting a person and is not adapted for quoting multiple paragraphs from a document. Here, we introduce a new blockquote for this purpose, but not necessary just for WCAG. For example, it could be used to cite ATAG guidelines/SC, such as in Guidelines to Make Your No-Code Website Tool Accessible (I am refering to this to illustrate the component could be used to cite other documents, yet I am not sure it would be relevant for this specific section)
I would normally agree, but overly breaking-down the code (especially with many includes) can lead to Jekyll performance issues. See https://boris.schapira.dev/notes/2018-11-jekyll-build-optimization/ for more context. Anyway, we could discuss options/alternatives when the moment comes.
+1 (see our related private discussion) |
Well, I get the initial hesitation: it is not immediately crystal-clear.
I still think it makes sense. Understanding documents are supporting documents closely related to WCAG, but a different document/source nonetheless: different purpose, different authors, different process to edit and publish, etc. But that is debatable. What do you think @iadawn @shawna-slh? FYI, this discussion allowed me to find a more obvious semantic issue for the current blockquote component: w3c/wai-website-theme#90 |
I would like to take more time to look at this and provide a more involved response... suffice it to say that at the moment, I would prefer that we don't progress with this new design just yet. |
OK, without the opportunity to pull the content from the WCAG repo there is no point in doing anything other than using a blockquote. What I would ultimately like to see is:
Which would pull all the relevant material from the WCAG repo and present it in the appropriate format. I suspect this would need a bit of Ruby to sort out and I don't have time to look at this just not. For the moment, this is fine as an approach for the What's New In pages. In terms of the design and whether this would work elsewhere, I will have a think about how to use this in the Understanding pages. The semantics might be ok, but I think the design won't work. On a final note, I think it should be 'Success Criterion' rather than 'WCAG Success Criteria' when referencing individual criterion. |
Direct link to preview: https://deploy-preview-281--wai-intro-wcag.netlify.app/standards-guidelines/wcag/new-in-22/
Changes:
Next steps when validated: