Skip to content

Commit 547e6c7

Browse files
committed
fix(header): subtitle with same size as title
1 parent ab4ff06 commit 547e6c7

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

packages/Layout/header/src/Title/Title.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ const Title = ({
4545
<h1 className={`${defaultClassName}__title`}>
4646
{title}
4747
{subtitle && (
48-
<small className={`${defaultClassName}__subtitle`}>
49-
{subtitle}
50-
</small>
48+
<span className={`${defaultClassName}__subtitle`}>{subtitle}</span>
5149
)}
5250
</h1>
5351
{children}

packages/Layout/header/src/__tests__/__snapshots__/Title.spec.tsx.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ exports[`<Title> renders Title correctly 1`] = `
3030
class="af-title-bar__title"
3131
>
3232
Toolkit Axa
33-
<small
33+
<span
3434
class="af-title-bar__subtitle"
3535
>
3636
Info complémentaire
37-
</small>
37+
</span>
3838
</h1>
3939
</div>
4040
</div>
@@ -53,11 +53,11 @@ exports[`<Title> renders Title correctly without menu 1`] = `
5353
class="af-title-bar__title"
5454
>
5555
Toolkit Axa
56-
<small
56+
<span
5757
class="af-title-bar__subtitle"
5858
>
5959
Info complémentaire
60-
</small>
60+
</span>
6161
</h1>
6262
</div>
6363
</div>

0 commit comments

Comments
 (0)