Skip to content

Commit

Permalink
Merge pull request #503 from UKHSA-Internal/chore/whats-new-child-hea…
Browse files Browse the repository at this point in the history
…ding-fix

Chore: What's new child heading location fix
  • Loading branch information
rhys-burendo authored Nov 18, 2024
2 parents f3ff496 + aea6ba1 commit 34aecc4
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/app/components/cms/pages/WhatsNewChild.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default async function WhatsNewChildPage({
const backLink = searchParams.returnUrl || extractRootSlug(slug)

return (
<View backLink={backLink} lastUpdated={lastUpdated}>
<View backLink={backLink} lastUpdated={lastUpdated} heading={title}>
<div className="govuk-grid-row">
<div className="govuk-grid-column-three-quarters-from-desktop">
<small className="govuk-caption-m govuk-!-margin-bottom-3">
Expand All @@ -51,17 +51,6 @@ export default async function WhatsNewChildPage({
</div>
) : null}

<Trans
i18nKey="entryTitle"
t={t}
components={[
<h1 className="govuk-heading-xl govuk-!-margin-bottom-6" key={0}>
<span className="govuk-visually-hidden" key={0} />
</h1>,
]}
values={{ value: title }}
/>

<span className="govuk-visually-hidden">{t('entryDescription')}</span>
<RichText>{body}</RichText>
</div>
Expand Down

1 comment on commit 34aecc4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit tests coverage

Lines Statements Branches Functions
Coverage: 93%
91.97% (1766/1920) 82.02% (406/495) 89.31% (259/290)
Tests Skipped Failures Errors Time
470 0 💤 0 ❌ 0 🔥 15.857s ⏱️

Please sign in to comment.