1
0
mirror of synced 2025-12-23 11:54:18 -05:00

Primer Update: Table of Contents (#22933)

* update to ActionList

* fix nested mini tocs

* adding key

* remove li and fix tests

* update font size to 14px

* remove border radius
This commit is contained in:
Grace Park
2021-11-17 16:27:12 -08:00
committed by GitHub
parent be52a4973c
commit 0afdf66a08
6 changed files with 54 additions and 34 deletions

View File

@@ -1,6 +1,7 @@
import { RepoIcon } from '@primer/octicons-react'
import { CodeExample } from 'components/context/ProductLandingContext'
import { TruncateLines } from 'components/ui/TruncateLines'
import { Label } from '@primer/components'
type Props = {
example: CodeExample
@@ -21,12 +22,9 @@ export const CodeExampleCard = ({ example }: Props) => {
<div className="d-flex flex-wrap">
{example.tags.map((tag) => {
return (
<span
key={tag}
className="IssueLabel color-fg-on-emphasis color-bg-accent-emphasis mr-2 mb-1"
>
<Label key={tag} variant="small" sx={{ bg: 'accent.emphasis', mb: 1, mr: 2 }}>
{tag}
</span>
</Label>
)
})}
</div>