Closed misilot closed 1 year ago
Can you share before/after screenshots of the affected pages?
Sure, I can try and get those! It looks like some css changes will probably required to make it look the same.
The biggest benefit to only having the single <h1>
tag is for screen readers.
Sure, I understand the benefit. And it's probably ok if there are some visual changes. I'd just like to see a before/after to make sure that the changes are not too drastic.
@misilot did you see my comment above?
I'd just like to see a before/after to make sure that the changes are not too drastic.
Here are the visual differences:
About page with h1 (old): About page with h2 (new):
Contact page with h1 (old): Contact page with h2 (new):
As much as I support the change for the sake of document structure, the visual changes are simply not acceptable as they stand.
Actually, the h1 tags are already present in the default edx-platform theme: https://github.com/openedx/edx-platform/blob/master/lms/templates/index_overlay.html https://github.com/openedx/edx-platform/blob/master/lms/templates/static_templates/contact.html
Thus, the changes should probably be made upstream first, before being applied here.
I'm closing this PR for now. But I'll be happy to reopen if you decide either to make the changes upstream or to introduce CSS changes here.
There is already an
<h1>
in the template being rendered. There should only be one<h1>
on a webpage with<h1 class="header-logo">