Skip to content

Commit f00a13b

Browse files
authored
Merge pull request #40333 from github/repo-sync
Repo sync
2 parents d690e8a + 47a969a commit f00a13b

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

src/landings/components/ArticleList.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
border-radius: 0;
66
}
77

8-
h3 {
8+
h3, span {
99
color: var(--fgColor-accent, var(--color-accent-fg));
1010
}
1111
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* TableOfContents CSS Module */
2+
3+
.linkItem {
4+
font-size: 1rem !important;
5+
color: var(--fgColor-accent) !important;
6+
display: block !important;
7+
width: 100% !important;
8+
text-decoration: underline !important;
9+
10+
span {
11+
color: var(--fgColor-accent, var(--color-accent-fg)) !important;
12+
font-size: inherit !important;
13+
text-decoration: inherit !important;
14+
}
15+
}

src/landings/components/TableOfContents.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import React from 'react'
44
import { Link } from '@/frame/components/Link'
55
import type { TocItem } from '@/landings/types'
66
import { ActionList } from '@primer/react'
7+
import styles from './TableOfContents.module.css'
78

89
type Props = {
910
items: Array<TocItem>
@@ -45,11 +46,7 @@ export const TableOfContents = (props: Props) => {
4546
const { fullPath, title, childTocItems } = item
4647
return (
4748
<React.Fragment key={fullPath}>
48-
<ActionList.LinkItem
49-
href={fullPath}
50-
as="a"
51-
className="f4 color-fg-accent d-list-item d-block width-full text-underline"
52-
>
49+
<ActionList.LinkItem href={fullPath} as="a" className={styles.linkItem}>
5350
{title}
5451
</ActionList.LinkItem>
5552
{(childTocItems || []).length > 0 && (
@@ -65,7 +62,7 @@ export const TableOfContents = (props: Props) => {
6562
key={childItem.fullPath}
6663
href={childItem.fullPath}
6764
as="a"
68-
className="f4 color-fg-accent d-list-item d-block width-full text-underline"
65+
className={styles.linkItem}
6966
>
7067
{childItem.title}
7168
</ActionList.LinkItem>

0 commit comments

Comments
 (0)