Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/landings/components/ArticleList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
border-radius: 0;
}

h3 {
h3, span {
color: var(--fgColor-accent, var(--color-accent-fg));
}
}
15 changes: 15 additions & 0 deletions src/landings/components/TableOfContents.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* TableOfContents CSS Module */

.linkItem {
font-size: 1rem !important;
color: var(--fgColor-accent) !important;
display: block !important;
width: 100% !important;
text-decoration: underline !important;

span {
color: var(--fgColor-accent, var(--color-accent-fg)) !important;
font-size: inherit !important;
text-decoration: inherit !important;
}
}
9 changes: 3 additions & 6 deletions src/landings/components/TableOfContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import React from 'react'
import { Link } from '@/frame/components/Link'
import type { TocItem } from '@/landings/types'
import { ActionList } from '@primer/react'
import styles from './TableOfContents.module.css'

type Props = {
items: Array<TocItem>
Expand Down Expand Up @@ -45,11 +46,7 @@ export const TableOfContents = (props: Props) => {
const { fullPath, title, childTocItems } = item
return (
<React.Fragment key={fullPath}>
<ActionList.LinkItem
href={fullPath}
as="a"
className="f4 color-fg-accent d-list-item d-block width-full text-underline"
>
<ActionList.LinkItem href={fullPath} as="a" className={styles.linkItem}>
{title}
</ActionList.LinkItem>
{(childTocItems || []).length > 0 && (
Expand All @@ -65,7 +62,7 @@ export const TableOfContents = (props: Props) => {
key={childItem.fullPath}
href={childItem.fullPath}
as="a"
className="f4 color-fg-accent d-list-item d-block width-full text-underline"
className={styles.linkItem}
>
{childItem.title}
</ActionList.LinkItem>
Expand Down
Loading