[Accessibility] Fix heading level gaps (#39149)

This commit is contained in:
diondiondion authored and GitHub committed 2026-05-22 15:06:59 +00:00
1 parent 28849e433a
commit 6a4d14b178
12 files changed
+61 -50

No files matched your search

@@ -556,7 +556,7 @@ class Status extends ImmutablePureComponent {
).find((item) => compareUrls(item.get('url'), cardUrl));
if (taggedCollection) {
media = <CollectionPreviewCard collection={taggedCollection.toJS()} />;
media = <CollectionPreviewCard collection={taggedCollection.toJS()} headingLevel='h2' />;
} else {
media = (
<Card
@@ -570,7 +570,7 @@ class Status extends ImmutablePureComponent {
const firstLinkedCollection = status.get('tagged_collections').first();
if (firstLinkedCollection) {
media = (
<CollectionPreviewCard collection={firstLinkedCollection.toJS()} />
<CollectionPreviewCard collection={firstLinkedCollection.toJS()} headingLevel='h2' />
);
}
}