chore(VPSidebarItem): correct hover style...

https://github.com/vuejs/vitepress/pull/3806#discussion_r1581399647
pull/3806/head
Henry Bley-Vroman 1 year ago
parent 1420b95629
commit 91fd45c5e2

@ -60,14 +60,32 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
return [
{
text: 'Introduction',
collapsed: false,
collapsed: true,
items: [
{ text: 'What is VitePress?', link: 'what-is-vitepress' },
{
text: 'Group heading linked to "What is VitePress?"',
link: 'what-is-vitepress',
collapsed: true,
items: [
{
text: 'Another group heading linked to "What is VitePress?"',
link: 'what-is-vitepress',
collapsed: true,
items: [
{
text: 'What is VitePress?',
link: 'what-is-vitepress'
}
]
}
]
},
{ text: 'Getting Started', link: 'getting-started' },
{ text: 'Routing', link: 'routing' },
{ text: 'Deploy', link: 'deploy' }
]
},
{ text: 'What is VitePress?', link: 'what-is-vitepress' },
{
text: 'Writing',
collapsed: false,

@ -200,12 +200,8 @@ const classes = computed(() => [
flex-shrink: 0;
}
.item:hover .caret {
color: var(--vp-c-text-2);
}
.item:hover .caret:hover {
color: var(--vp-c-text-1);
.item summary:hover .caret {
color: var(--vp-c-text-1)
}
.caret-icon {

Loading…
Cancel
Save