Skip to content

Commit b44a0f8

Browse files
committed
Fix font-sizes with grouping
1 parent 7b6501b commit b44a0f8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1>
2929
feature: species === 'Feature',
3030
}" :data-level="level" ref="container">
3131
<support-status :score="feature.score" v-if="showScore"></support-status>
32-
<wrap-if v-if="feature.title || feature.code || feature.id" :is="level > 2 ? '' : 'h' + level" class="title">
32+
<wrap-if v-if="feature.title || feature.code || feature.id" :is="species === 'Feature' ? '' : 'h' + level" class="title">
3333
<span class="title" v-if="feature.titleHtml" v-html="feature.titleHtml"></span>
3434
<wrap-if :is="feature.title ? 'span' : 'code'" class="title" v-else v-text="feature.title ?? feature.code ?? feature.id"></wrap-if>
3535
</wrap-if>

src/vue/components/feature/feature.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
margin-block: 1em .5em;
5151
}
5252

53+
&:has(> h1) {
54+
font-size: var(--font-size-2xl);
55+
}
56+
5357
&:has(> h2) {
5458
font-size: var(--font-size-xl);
5559
}

0 commit comments

Comments
 (0)