r/elearning • • 7d ago

Accessibility in AI-generated HTML courses: what the automated check caught, and what only a keyboard pass found

I've been building some lessons as plain HTML with Claude doing most of the code, and I run every package through an accessibility check before it goes anywhere. Sharing what came up, because it's been fairly consistent.

What the automated scan (axe) caught:

  • Clickable divs and spans instead of buttons, so no keyboard access and nothing announced to a screen reader
  • Images with no alt text, or alt text that just repeats the file name
  • Low contrast on "nice" muted colours, especially grey text on light backgrounds
  • Form fields in quizzes without labels

What only going through it with the keyboard found:

  • Focus outline removed in the CSS, so you can tab but can't see where you are
  • Drag-and-drop with no keyboard alternative at all
  • Feedback after an answer that appears on screen but is never announced
  • Right/wrong shown only by colour
  • A modal that you can tab out of, into the page behind it

Most of it is quick to fix once you know it's there. Telling Claude up front "keyboard only, visible focus, no colour-only feedback, announce feedback" prevents a lot of it. But the scan alone would have passed a course that a keyboard user couldn't finish.

For those who build in Storyline or Rise: do you still run your own checks on top of what the tool gives you, or do you trust the output?

0 Upvotes

9 comments sorted by

3

u/AccessibleLD 7d ago

I personally check everything in every tool multiple times with a keyboard run through and with a screen reader. If I find issues that I correct, I run through again.

Then there’s the time I spend emailing issues to authoring tool companies.

I never trust an automated check without a manual audit. Never.

1

u/LearnDevStudio 5d ago

Agreed on never trusting the scan alone. The screen reader pass is also where AI-built HTML can surprise you more than tool output: a page can look right and still be read in the wrong order, because the layout was rearranged with CSS while the HTML order stayed different. The keyboard pass catches some of that, but not all.

When you email the authoring tool companies, which issues come up most often? I'm curious whether Storyline and Rise output still has problems that a manual pass finds but their own accessibility notes don't mention.

1

u/AccessibleLD 4d ago

Oh, tons. In Storyline their checker won’t catch a lot of things. Rise is actually pretty good because of the way it’s built, accessibility-wise.

In Storyline the issue is with triggers and buttons and shapes meant to look like buttons and hotspots and groups. A button and the group on it and the text on it light all get focus but don’t accomplish the action it says they do. A trigger to a different layer might be lost by a screen reader if the reading order isn’t set correctly. Many of Storyline’s own templates are not accessible.

And I know… I know… people will edit things and can make them less accessible…. But accessibility should be the default. Companies like Articulate should be modeling accessibility and putting out templates that are accessible so people using them can see how they function accessibly before editing.

A lot of authoring tools now use a lot of iframes and build in blocks which presents different challenges. Like tools that use AI to build whether in the tool or using MCP to connect Claude or what have you.

Depending on the tool I can use Claude to make things more accessible but some have limitations. And also most people don’t know what to have Claude fix because I find most issues with a screen reader pass or inspecting the code. (And on some of these blocks I even have trouble deciphering from the code what the issue is).

Some tools advertise an accessibility checker but it only checks if alt text exists and color contrast is good on plain backgrounds.

2

u/LearnDevStudio 2d ago

Thanks, this is really useful, especially the button/group/text one. For anyone reading who builds in Storyline: the text box and shapes sitting on top of a custom button can be hidden from screen readers in their accessibility settings ("Visible to accessibility tools" off) and taken out of the focus order, so only the button itself gets focus and is announced. Worth checking on every custom button, not just once per course.

Agree on templates. If the starting point isn't accessible, most people won't know there's anything to fix, and a checker that only looks at alt text and contrast won't tell them.

The iframe point applies to generated HTML too: content inside a frame has its own headings and focus order, and they often don't connect to the page around it.

1

u/AccessibleLD 2d ago

Well explained!

Just so people know, generated html doesn’t always create iframes. For example can create html content with Claude Code that isn’t, but Claude artifacts will be. For general Claude code html iframes are only created if needed for external embedded content.

That’s why it’s always good to test test test! Inspect the site and use any automated checkers you like and manually run through with a keyboard, and learn to make a pass through with a screen reader.

1

u/LearnDevStudio 1d ago

Fair correction, thanks. I wrote that too broadly: plain HTML built with Claude Code doesn't use iframes unless something external is embedded, like a video player. Frames come in with embeds, some LMS players and tools that assemble pages from blocks. Agreed on the rest, including learning to do the screen reader pass yourself.

1

u/Vast-Kaleidoscope968 6d ago

One more check I’d add: after a learner closes a modal, does focus return to the button that opened it? That can slip through even when the modal traps focus correctly.

1

u/LearnDevStudio 5d ago

Good one, and easy to miss because the modal itself passes every check. When it closes without returning focus, focus usually drops to the body, so a keyboard user is sent back to the top of the page and a screen reader starts reading from the beginning.

The same thing happens without any modal: after a quiz answer is submitted, the Submit button is often hidden or replaced by the feedback, and focus has nowhere to go. In that case focus should move to the feedback text or to the Next button.

Adding both to the keyboard pass. Thanks.