File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
packages/cli/doc-core/src/theme-default/components/Siderbar Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
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 保持一致
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export function SidebarItemComp(props: SidebarItemProps) {
95
95
onMouseEnter = { ( ) => props . preloadLink ( item . link ) }
96
96
className = { `${
97
97
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 `}
99
99
style = { {
100
100
...textEllipsisStyle ,
101
101
// The first level menu item will have the same font size as the sidebar group
@@ -226,7 +226,7 @@ export function SidebarGroupComp(props: SidebarItemProps) {
226
226
} }
227
227
>
228
228
< 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"
230
230
style = { {
231
231
...textEllipsisStyle ,
232
232
} }
You can’t perform that action at this time.
0 commit comments