Only include an <hgroup> in the page summary if there's a description to include

Otherwise just use an <h2>. Add .page-summary__heading to both elements and update
the styles.
This commit is contained in:
Eryn Wells 2024-10-20 09:16:43 -07:00
parent 8aaea57a2e
commit 4d9e9e1301
2 changed files with 13 additions and 8 deletions

View file

@ -18,11 +18,11 @@
margin-block-end: var(--space-xl);
}
> hgroup {
line-height: 1;
.page-summary__heading {
margin-block: 0 var(--space-xs);
h2 {
line-height: 1;
font-size: var(--text-l);
margin-block: 0;
}