A11y: distinct aria-label for SMTP page step-number landmarks (aria_complementary_labelled) - #3370
vivi-the-going-merry[bot] wants to merge 1 commit into
Conversation
The Formidable > SMTP admin page renders two step-number <aside> badges (Install, Setup). <aside> carries an implicit role="complementary", and neither had an accessible name, tripping the IBM Equal Access aria_complementary_labelled rule. Closes Strategy11/formidable-pro#6698
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| PHP | Sep 17, 2026 11:35p.m. | Review ↗ | |
| JavaScript | Sep 17, 2026 11:35p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
What was broken
The Formidable > SMTP admin page (
?page=formidable-smtp) renders two step-number badges as<aside class="num">elements (Install, Setup).<aside>carries an implicitrole="complementary", and neither had an accessible name - tripping the IBM Equal Accessaria_complementary_labelledrule. Confirmed exactly 2 violations, matching the CI run this issue was filed from.What changed
Added a distinct
aria-labelto each<aside class="num">inclasses/controllers/FrmSMTPController.php, reusing the same "Step 1"/"Step 2" strings already used as the nested icon's ownaria-label. Markup only - no CSS or JS changes.How it was verified
Added a PHPUnit test (
tests/phpunit/misc/test_FrmSMTPController.php) that renders the real page output and asserts both<aside>elements have a non-emptyaria-label, via a new reusable helper (FrmUnitTest::assert_complementary_landmarks_are_labelled()). Confirmed red before the fix (empty accessible name) and green after, against the real local PHPUnit rig. PHPCS clean. Self-reviewed (security + correctness/simplify lenses) - no blocking findings.Closes Strategy11/formidable-pro#6698
🤖 Generated with Claude Code