Skip to content

Conversation

@tyemirov
Copy link
Contributor

@tyemirov tyemirov commented Jan 8, 2026

Summary

  • Subscribe iframes are now accessible to keyboard users
  • Before: tabindex="-1" always, making iframe unfocusable
  • After: tabindex="0" when card is flipped, tabindex="-1" when unflipped
  • Keyboard users can now Tab into the LoopAware form to subscribe

Changes

  • script.js: Updated toggleFlip handler to toggle iframe tabindex
  • tests/hero.spec.js: Added assertions verifying tabindex toggle behavior

Test plan

  • npx playwright test — all 7 tests pass
  • npx eslint script.js tests/*.js mpr-band.js — no violations
  • New test assertions verify:
    • iframe has tabindex="-1" before flip
    • iframe has tabindex="0" after flip
    • iframe returns to tabindex="-1" after unflip

🤖 Generated with Claude Code

- Subscribe iframe now becomes focusable (tabindex=0) when card is flipped
- Iframe is unfocusable (tabindex=-1) when card is in normal state
- Ensures keyboard users can interact with LoopAware subscribe form
- Added Playwright assertions to verify tabindex toggle behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@tyemirov tyemirov self-assigned this Jan 8, 2026
@tyemirov tyemirov merged commit efaf07f into improvement/MP-203-band-order-alignment Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants