Skip to content

Commit 231167d

Browse files
authored
Make icons for page groups more contrasting (#3286)
1 parent c0ee60e commit 231167d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/sharp-jeans-burn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"gitbook": patch
3+
---
4+
5+
Make icons for page groups more contrasting

packages/gitbook/src/components/TableOfContents/TOCPageIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function TOCPageIcon({ page }: { page: RevisionPage }) {
1313
page={page}
1414
style={tcls(
1515
'text-base',
16-
'text-tint-strong/6',
16+
'[.toclink_&]:text-tint-strong/6',
1717
'group-aria-current-page/toclink:text-primary-subtle',
1818
'contrast-more:group-aria-current-page/toclink:text-primary',
1919

packages/gitbook/src/components/TableOfContents/ToggleableLinkItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function LinkItem(
6767
insights={insights}
6868
aria-current={isActive ? 'page' : undefined}
6969
className={tcls(
70-
'group/toclink relative transition-colors',
70+
'group/toclink toclink relative transition-colors',
7171
'flex flex-row justify-between',
7272
'circular-corners:rounded-2xl rounded-md straight-corners:rounded-none p-1.5 pl-3',
7373
'text-balance font-normal text-sm text-tint-strong/7 hover:bg-tint-hover hover:text-tint-strong contrast-more:text-tint-strong',

0 commit comments

Comments
 (0)