Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The text that describes text formats uses H3 for the names of formats.
On the node edit form, this is the wrong element -- the next heading up is the main title which is an H1.
Comment | File | Size | Author |
---|---|---|---|
#14 | filter-format-headings.png | 150.9 KB | sun |
#3 | 890212_wrong_filter_headings.patch | 2.07 KB | BarisW |
drupal-text format help text uses wrong headings.jpg | 49.59 KB | joachim |
Comments
Comment #1
BarisW CreditAttribution: BarisW commentedI'll take this one!
Comment #2
joachim CreditAttribution: joachim commentedBeware -- when this appears in the add comment form, the H3 is the correct thing to use!
Comment #3
BarisW CreditAttribution: BarisW commentedThis should nail it!
It adds a H3 in case of a comment form, and a H2 in all other forms :)
I changed the font size of the H2 in the node/add form to keep in equal to the current font-size.
Comment #5
aspilicious CreditAttribution: aspilicious commentedWAIT A MINUTE ;)
This is evil...
Look at #889764: Text format selection layout is broken. and help that one ;)
Comment #6
aspilicious CreditAttribution: aspilicious commentedNot rly a duplicate but this issue is just not relevant.
Comment #7
joachim CreditAttribution: joachim commentedThat issue suggests the use of headings is here to stay -- therefore they need fixing.
Comment #8
BarisW CreditAttribution: BarisW commentedI was working on #889764: Text format selection layout is broken. as well ;)
But that is another issue, the heading still should use the proper level.
Comment #9
Jeff Burnz CreditAttribution: Jeff Burnz commentedNot sure I agree with this, like to hear about this from accessibility team who I believe made the change from label to heading level before we go switching this to H2, must have been some rational there (or maybe not?).
Comment #10
BarisW CreditAttribution: BarisW commentedComment #11
Everett Zufelt CreditAttribution: Everett Zufelt commentedI don't see a real accessibility problem with using better nested headings. There are a number of situations in Drupal core where headings don't next properly because we cannot programmatically determine the level of the previous appropriate heading in the DOM.
Comment #12
BarisW CreditAttribution: BarisW commentedIf when can get it to work as it should be, why wouldn't we?
WCAG1.0 states: http://www.w3.org/TR/WCAG10-HTML-TECHS/#document-headers
Also see (good read): http://www.sitepoint.com/blogs/2007/01/26/the-hard-facts-about-heading-s...
Comment #13
Everett Zufelt CreditAttribution: Everett Zufelt commented@BarisW
WCAG 1.0 is not authoritative as it is over 10 years old and has been superceeded by WCAG 2.0.
Nevertheless, where we have the ability to nest headings correctly we should.
Comment #14
sunI've already mentioned elsewhere that heading tags are the wrong tool for most labels. Now, if we happen to output headings that break the hierarchical structure of the document/section, then those headings need to be reverted.
Comment #15
sunSee you over in the now re-opened #882666: Core form descriptions shouldn't use a label when not associated with a form, which is the cause for this issue.