Re: [PATCH v2] docs: rework footer with semantic markup and responsive layout
From: Jonathan Corbet
Date: Wed Mar 25 2026 - 19:06:23 EST
"Rito Rhymes" <rito@xxxxxxxxxxxxxx> writes:
> We could use a CSS override if the goal were only to change how
> the footer looks. But CSS cannot change the footer's semantics for
> accessibility, and that's where a fundamental issue lies.
>
> The default theme renders the footer as a generic `div`, and
> `class="footer"` does not give it any semantic meaning. Screen
> readers and other accessibility tools do not treat that the same as
> a real `<footer>` landmark.
>
> To fix that properly, we need to change the markup, either by
> rendering a native `<footer>` element or by adding
> `role="contentinfo"` to the existing container. That requires
> replacing the footer template/component, not just overriding its CSS.
>
> Since the footer appears on every page, I think it's important to
> ensure its a11y-friendly, so it makes sense to fix it at the markup
> level rather than just overriding the CSS to be mobile-friendly.
Please, include the context you are replying to so people can follow the
discussion.
We are not going to fix Sphinx accessibility piecemeal in this way. If
that is really the objective, I think the right thing is to work with
the Sphinx project directly and come up with a proper plan for all of
their major elements. Tweaking the footer - the contents of which will
be read by the screen reader and understood just fine - doesn't really
address that problem.
Thanks,
jon