Heading on contact page should be h4, instead dev tools tell me it's h1 (though it looks nothing like h1?)
Not sure what's going on there but hopefully a quick fix :)
| Charlie_WMDE | |
| Aug 13 2025, 11:23 AM |
| F65750694: image.png | |
| Aug 14 2025, 11:04 AM |
| F65750691: image.png | |
| Aug 14 2025, 11:02 AM |
| F65747580: grafik.png | |
| Aug 13 2025, 11:24 AM |
Heading on contact page should be h4, instead dev tools tell me it's h1 (though it looks nothing like h1?)
Not sure what's going on there but hopefully a quick fix :)
Welcome @Shreyapedia! Please see https://www.mediawiki.org/wiki/New_Developers - thanks!
https://phabricator.wikimedia.org/project/profile/5563/
@Charlie_WMDE I’d recommend keeping it as h1 as it’s the main title of the page, so semantically it should remain at the top of the heading hierarchy. HTML tags define the structure of the document, while the styling is handled by CSS. I believe this is important for things like accessibility, assistive technologies, and SEO?
If the title doesn't look correct, we can add classes such as text-h4 to the h1 tag so that it is styled correctly. I had a look on Figma but couldn't see a design for the contact page. Should we do the same as the Illegal content form, h4 style with a 16px bottom margin (text-h4 mb-4 classes)?
For reference, here are some useful links to Vuetify v2 classes that we can use to style elements:
@Shreyapedia please add Bug: <task number> (i.e. Bug: T401820 for this task) to your git commit footer so that changes are linked to Phabricator. Thanks
Shreya71703 opened https://github.com/wbstack/ui/pull/1029
Fix contact page heading alignment (Bug: T401820)
Shreya71703 closed https://github.com/wbstack/ui/pull/1029
Fix contact page heading alignment (Bug: T401820)
Some quotes from Mozilla's developer documentation to back up my previous comment that the title should remain a <h1> tag.
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/Heading_Elements#accessibility
Usage notes
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/Heading_Elements#accessibility
Accessibility
Navigation
A common navigation technique for users of screen reading software is to quickly jump from heading to heading in order to determine the content of the page. Because of this, it is important to not skip one or more heading levels. Doing so may create confusion, as the person navigating this way may be left wondering where the missing heading is.
Closed PR#1025 and removing @Shreyapedia as assignee of this task, as no work has been done since Aug 2025.