Skip to content

Commit 6f93b6c

Browse files
authored
Merge pull request #18422 from github/repo-sync
repo sync
2 parents 1db881f + 869cfd9 commit 6f93b6c

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

components/release-notes/GHAEReleaseNotePatch.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import { useRef, useEffect } from 'react'
2+
import cx from 'classnames'
23

34
import { useTranslation } from 'components/hooks/useTranslation'
45
import { useOnScreen } from 'components/hooks/useOnScreen'
56
import { PatchNotes } from './PatchNotes'
67
import { ReleaseNotePatch } from './types'
78

9+
import styles from './PatchNotes.module.scss'
10+
811
type Props = { patch: ReleaseNotePatch; didEnterView: () => void }
912
export function GHAEReleaseNotePatch({ patch, didEnterView }: Props) {
1013
const { t } = useTranslation('release_notes')
@@ -19,7 +22,11 @@ export function GHAEReleaseNotePatch({ patch, didEnterView }: Props) {
1922
const bannerText = t('banner_text')
2023

2124
return (
22-
<div ref={containerRef} className="mb-10 pb-6 border-bottom border-top" id={patch.date}>
25+
<div
26+
ref={containerRef}
27+
className={cx(styles.sectionHeading, 'mb-10 pb-6 border-bottom border-top')}
28+
id={patch.date}
29+
>
2330
<header style={{ zIndex: 1 }} className="container-xl border-bottom px-3 pt-4 pb-2">
2431
<div className="d-flex flex-items-center">
2532
<h2 className="border-bottom-0 m-0 p-0">{patch.title}</h2>

components/release-notes/GHESReleaseNotePatch.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import { useEffect, useRef } from 'react'
22
import dayjs from 'dayjs'
3+
import cx from 'classnames'
34

45
import { useTranslation } from 'components/hooks/useTranslation'
56
import { PatchNotes } from './PatchNotes'
67
import { Link } from 'components/Link'
78
import { CurrentVersion, ReleaseNotePatch, GHESMessage } from './types'
89
import { useOnScreen } from 'components/hooks/useOnScreen'
910

11+
import styles from './PatchNotes.module.scss'
12+
1013
type Props = {
1114
patch: ReleaseNotePatch
1215
currentVersion: CurrentVersion
@@ -33,7 +36,11 @@ export function GHESReleaseNotePatch({
3336
}, [onScreen])
3437

3538
return (
36-
<div ref={containerRef} className="mb-10 pb-6 border-bottom border-top" id={patch.version}>
39+
<div
40+
ref={containerRef}
41+
className={cx(styles.sectionHeading, 'mb-10 pb-6 border-bottom border-top')}
42+
id={patch.version}
43+
>
3744
<header style={{ zIndex: 1 }} className="container-xl border-bottom px-3 pt-4 pb-2">
3845
<div className="d-flex flex-justify-between flex-wrap">
3946
<h2 className="border-bottom-0 m-0 p-0 mt-2">

0 commit comments

Comments
 (0)