From 6185352bc563024d22dee0b257e2775cadd5b797 Mon Sep 17 00:00:00 2001 From: Robert Sese <734194+rsese@users.noreply.github.com> Date: Fri, 9 Dec 2022 15:14:55 -0600 Subject: [PATCH] anchor links for release note sections (#33401) --- components/release-notes/PatchNotes.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/release-notes/PatchNotes.tsx b/components/release-notes/PatchNotes.tsx index 5980312327..ad40c02d1c 100644 --- a/components/release-notes/PatchNotes.tsx +++ b/components/release-notes/PatchNotes.tsx @@ -3,6 +3,7 @@ import cx from 'classnames' import { slug } from 'github-slugger' import { ReleaseNotePatch } from './types' import { Link } from 'components/Link' +import { LinkIconHeading } from 'components/article/LinkIconHeading' import styles from './PatchNotes.module.scss' @@ -25,6 +26,7 @@ export function PatchNotes({ patch, withReleaseNoteLabel }: Props) { <> {Object.entries(patch.sections).map(([key, sectionItems], i, arr) => { const isLast = i === arr.length - 1 + const sectionSlug = `${patch.version}-${key.replaceAll('_', '-')}` return (