Skip to content

Commit 7c234b5

Browse files
fix(doc-core): make sidebar font-weight consistent (#3662)
Co-authored-by: yangxingyuan <[email protected]>
1 parent 9fe6499 commit 7c234b5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.changeset/eight-deers-sell.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@modern-js/doc-core': patch
3+
---
4+
5+
fix(doc-core): make sidebar font-weight consistent
6+
7+
fix(doc-core): 使 sidebar 的 font-weight 保持一致

packages/cli/doc-core/src/theme-default/components/Siderbar/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function SidebarItemComp(props: SidebarItemProps) {
9595
onMouseEnter={() => props.preloadLink(item.link)}
9696
className={`${
9797
active ? styles.menuItemActive : styles.menuItem
98-
} mt-1 py-1.5 px-3 block rounded-xl`}
98+
} mt-1 py-1.5 px-3 block rounded-xl font-medium`}
9999
style={{
100100
...textEllipsisStyle,
101101
// The first level menu item will have the same font size as the sidebar group
@@ -226,7 +226,7 @@ export function SidebarGroupComp(props: SidebarItemProps) {
226226
}}
227227
>
228228
<h2
229-
className="py-1 px-2 text-sm font-bold ml-1"
229+
className="py-1 px-2 text-sm font-medium ml-1"
230230
style={{
231231
...textEllipsisStyle,
232232
}}

0 commit comments

Comments
 (0)