Skip to content

Commit

Permalink
fix(header): subtitle with same size as title
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWeb committed Jan 18, 2024
1 parent ab4ff06 commit 547e6c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions packages/Layout/header/src/Title/Title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ const Title = ({
<h1 className={`${defaultClassName}__title`}>
{title}
{subtitle && (
<small className={`${defaultClassName}__subtitle`}>
{subtitle}
</small>
<span className={`${defaultClassName}__subtitle`}>{subtitle}</span>
)}
</h1>
{children}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ exports[`<Title> renders Title correctly 1`] = `
class="af-title-bar__title"
>
Toolkit Axa
<small
<span
class="af-title-bar__subtitle"
>
Info complémentaire
</small>
</span>
</h1>
</div>
</div>
Expand All @@ -53,11 +53,11 @@ exports[`<Title> renders Title correctly without menu 1`] = `
class="af-title-bar__title"
>
Toolkit Axa
<small
<span
class="af-title-bar__subtitle"
>
Info complémentaire
</small>
</span>
</h1>
</div>
</div>
Expand Down

0 comments on commit 547e6c7

Please sign in to comment.