From 547e6c7fe1ef6808179aa7d81c7013b1855a2bfc Mon Sep 17 00:00:00 2001 From: Martin Stievenart Date: Tue, 16 Jan 2024 14:54:41 +0100 Subject: [PATCH] fix(header): subtitle with same size as title --- packages/Layout/header/src/Title/Title.tsx | 4 +--- .../src/__tests__/__snapshots__/Title.spec.tsx.snap | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/Layout/header/src/Title/Title.tsx b/packages/Layout/header/src/Title/Title.tsx index c7c5411d3..2da8a1318 100644 --- a/packages/Layout/header/src/Title/Title.tsx +++ b/packages/Layout/header/src/Title/Title.tsx @@ -45,9 +45,7 @@ const Title = ({

{title} {subtitle && ( - - {subtitle} - + {subtitle} )}

{children} diff --git a/packages/Layout/header/src/__tests__/__snapshots__/Title.spec.tsx.snap b/packages/Layout/header/src/__tests__/__snapshots__/Title.spec.tsx.snap index b3427fc32..7021a6fb6 100644 --- a/packages/Layout/header/src/__tests__/__snapshots__/Title.spec.tsx.snap +++ b/packages/Layout/header/src/__tests__/__snapshots__/Title.spec.tsx.snap @@ -30,11 +30,11 @@ exports[` 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> @@ -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>