-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove sub heading #9308
Comments
I do not think the fallback should be a Heading block. Semantically, the closest thing in Gutenberg to a subheading would be a Paragraph block with a style variation or just But yes, the Subheading block should be removed. The proper way to have subheadings is like so: <article>
<header>
<h1>Document title</h1>
<p>Subheading</p>
</header>
<section>
<header>
<h1>Section heading</h1> <!-- yes, you can use <h1>s here -->
<p>Section subheading</p>
</header>
<p>Section content</p>
</section>
<section>
<header>
<h1>Another section heading (equivalent of an h2</h1> with no section elements)</h1>
<p>Another section subheading</p>
</header>
<section>
<header>
<h1>Sub-section heading (equivalent of an h3</h1> with no section elements)
<p>Sub-section subheading</p>
</header>
<p>Sub-section content</p>
</section>
<p>Section content</p>
</section>
</article> Of course, you can not use |
YES YES YES YES. 💯🔥❤️💯🔥❤️💯🔥❤️💯🔥❤️💯🔥❤️💯🔥❤️ |
Without rehashing the semantics of why subheads are paragraphs, I also agree that leftover subheads shouldn’t be transformed to an h4. That would be an unexpected change in semantics for content that has already been created. They’re already rendered as a paragraph; why not simply transform them to a normal paragraph, and apply |
Also I’m not sure it actually requires a true fix for #8141 because the change would be in a deprecated handler, right? Users wouldn’t be asked to manually transform their leftover subheads. (Right...?) |
Agreed that they can't necessarily transform directly into a Heading. Some recent discussion on this in #9179. |
@chrisvanpatten Yeah, the Subheading blocks should at worst be transformed into Classic blocks which should then be able to be converted into Paragraph blocks. |
Oh, right. Yeah, okay, that makes sense. I've updated the comment 😄 |
My thinking in suggesting a heading was what some people may use it for. Also very ok with it being a paragraph. |
Right now the sub heading has a few issues and isn't really solving many that other blocks don't. The original idea was to literally be a sub title that had a single use. This has now become something people both want in multiple places to use and grown beyond that intent. As we have headings and you can do styling with text, we no longer need this block. It's also not super understood as to the original intent.
I am going to suggest we for now remove this block. I do understand some already use it and the fallback should be a heading block, ideally a lower number than h4 to get size and not have SEO implications (which already are confusing with this block).
The text was updated successfully, but these errors were encountered: