tl;dr – I made a tool to look up WCAG SCs and copy the links.
As anyone who has spent more than 30 minutes with me where the conversation might veer towards anything technical, I am an über-bore where it comes to the Mac app Keyboard Maestro (KM). It does a shit-tonne of stuff and, frankly, what it can’t do is more likely because you haven’t thought to ask/tell it to do it.
A while back I set up a bunch of keyboard shortcuts (text expansions, if you will) that made it trivially easy for me to generate links to WCAG Success Criteria in various formats (Markdown, HTML, etc):
I also made these available in a GitHub repo. All well and good, assuming that you a) have a copy of KM and b) you’re a ‘MacTwat’ (according to Steve Faulkner).
A couple of weeks ago, TetraLogical boss lady Léonie was asking about whether we had a reference page of all the WCAG SCs in Markdown format (we do) and then Patrick joked that it was only a matter of time before I put one together as bookmarklet.
Well, no need, I thought, because I already had my own little system in KM. So … screw y’all, I’m alright Jack? Nah, it got me thinking that maybe I could create a bookmarklet that did something similar to how I used KM’s spotlight-like global search.
So, with that in mind, here’s what I came up with:
- Run the bookmarklet and it shows all WCAG SCs sorted by number:
- Want to know which ones are 2.1? Level AAA? 2.2 *and* Level AAA? There are filters that let you, well, filter. What else?
- Start typing the SC number and that list will filter down to show matches:
- Can’t remember the WCAG SC number? Perhaps you know it’s something about ‘labels’? OK, well then type labels, then, and Bob’s’ yer mother’s brother:
- That’s the lookup part, but then there’s the next part: once you’ve found the SC you were looking for, hit ENTER and you’ll get options to copy as markdown link, HTML link, and also to just visit the page. It’ll copy to the clipboard (you might need to allow it on first run) or, if that fails, it’ll write to the console:
Having asked on LinkedIn how many people remember the numbers, it’s clear that many people with years of accessibility experience have to look things up, in all manner of ways. Hopefully this bookmarklet will help with that lookup and also the eternal question for Markdown links:
Do I do the square brackets first then the curved ones? Or is the other way round? Or do I need to copy the last Markdown link I used to be sure?
[OK, that’s 3 questions, but they all amount to the same things]
(Or should I have used curvy brackets just then?)
[Or should I have called them parenthesis?]
(Or parentheses?)
{Arrrrrgggghhh!}