Skip to content

fix: render promo banner as complementary landmark, not contentinfo - #1566

Merged
ksen0 merged 2 commits into
processing:mainfrom
coseeian:a11y-banner-complementary
Aug 14, 2026
Merged

fix: render promo banner as complementary landmark, not contentinfo#1566
ksen0 merged 2 commits into
processing:mainfrom
coseeian:a11y-banner-complementary

Conversation

@coseeian

@coseeian coseeian commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

This PR addresses a duplicate contentinfo landmark issue introduced in #929.

Because both the promo banner and the main site footer were rendered as root-level <footer> elements, two contentinfo landmarks were generated in the accessibility tree. This was flagged during Playwright axe-core scan (axe rule details). While HTML permits multiple footers, ARIA best practices recommend maintaining a single contentinfo landmark per document so screen reader users aren't confused with multiple primary footers (see MDN docs).

Since the banner is a dismissible promo rather than main footer content, I think it should be reasonable to change the landmark to complementary (using an HTML <aside>), which still keeps it easily accessible without conflicting with the main footer.

Visual styling remains unchanged. Feedback on the role or label choice is very welcome. Thanks!

@coseeian coseeian added the Accessibility: Best Practice No obvious current impact, but which may lead to problems in the future label Aug 9, 2026
@ksen0

ksen0 commented Aug 11, 2026

Copy link
Copy Markdown
Member

Nice, this makes a lot of sense

@coseeian

Copy link
Copy Markdown
Collaborator Author

Hi @ksen0,

Quick nudge on this PR. No rush, but whenever you have a free moment to merge it, that would be awesome - I’m getting ready to open the next PR about playwright scan on CI building on top of this work.

Thanks again for the review!

@ksen0

ksen0 commented Aug 14, 2026

Copy link
Copy Markdown
Member

Thanks for the bump, will merge

@ksen0
ksen0 merged commit a9800bb into processing:main Aug 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Accessibility: Best Practice No obvious current impact, but which may lead to problems in the future

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants