Skip to content

Commit

Permalink
Fix link styling on the pattern overview page (#4025)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding authored Aug 21, 2024
1 parent e569cf3 commit 1b0c385
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions site/src/components/patterns/OverviewList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@
padding-inline: var(--salt-spacing-100);
border-bottom: var(--salt-size-border) var(--salt-separable-borderStyle) var(--salt-separable-tertiary-borderColor);
}

.link {
--mosaic-color-dark-navigable-documentLink-regular: var(--salt-content-primary-foreground);
--mosaic-color-dark-navigable-documentLink-hover: var(--salt-content-foreground-hover);
--mosaic-color-dark-navigable-documentLink-visited: var(--salt-content-foreground-visited);
}
6 changes: 5 additions & 1 deletion site/src/components/patterns/OverviewList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export function OverviewList({ patterns = [] }: OverviewListProps) {
.sort((a, b) => a.title.localeCompare(b.title))
.map((pattern) => (
<li key={pattern.route}>
<Link href={pattern.route} variant="document">
<Link
className={styles.link}
href={pattern.route}
variant="document"
>
{pattern.title}
</Link>
</li>
Expand Down

0 comments on commit 1b0c385

Please sign in to comment.