Skip to content

Commit aa32198

Browse files
authored
Use a <div> instead of <h1> in the top header (#2428)
1 parent 0f1565c commit aa32198

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/beige-crabs-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': patch
3+
---
4+
5+
Avoid multiple <h1> in the page by using a <div> for the title in the header

packages/gitbook/src/components/Header/HeaderLogo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function LogoFallback(props: HeaderLogoProps) {
108108
style={['object-contain', 'size-8']}
109109
fetchPriority="high"
110110
/>
111-
<h1
111+
<div
112112
className={tcls(
113113
'text-pretty',
114114
'line-clamp-3',
@@ -126,7 +126,7 @@ function LogoFallback(props: HeaderLogoProps) {
126126
)}
127127
>
128128
{getContentTitle(space, customization, parent)}
129-
</h1>
129+
</div>
130130
</>
131131
);
132132
}

0 commit comments

Comments
 (0)