You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The h2 header should not have such a large padding with the notice box above it.
Steps to reproduce the behavior
Use a H2 Header within a div that has the notice<--type> class applied.
Example:
{% capture example %}
This is some text to display below the header.
The header itself will have a large green area above it since the margin of the header expands the notice div upwards.
{% endcapture %}
<divclass="notice--success">
<h2class="no_toc">Example</h2>
{{ example | markdownify }}
</div>
Other
I've only tested this with the H2 and H4 header. I can't say if other headers are affected too, but I wouldn't doubt this to be the case.
The H4 Header seems to be fine.
The text was updated successfully, but these errors were encountered:
I think you're hitting all the scenarios the notice class wasn't designed to handle.
The notice-- classes were written to only apply to a <p> element. Not blockquotes, lists, headings, etc. So this isn't completely unexpected as it was done intentionally as a way of styling a paragraph of Markdown easily.
The better path forward I think is to abstract notices into their own _includes that accept parameters for headings and content. Then those elements can be styled appropriately.
Environment
*Info taken from https://pages.github.com/versions/ since it's a GitHub pages hosted page.
Expected behavior
The h2 header should not have such a large padding with the notice box above it.
Steps to reproduce the behavior
Use a H2 Header within a div that has the
notice<--type>
class applied.Example:
Other
I've only tested this with the H2 and H4 header. I can't say if other headers are affected too, but I wouldn't doubt this to be the case.
The H4 Header seems to be fine.
The text was updated successfully, but these errors were encountered: