summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaad Khan2025-04-29 18:52:48 +0500
committerGitHub2025-04-29 15:52:48 +0200
commitea31f46be4d43339417dac7fc135d2be97080c58 (patch)
tree1598f9dcf8d5ea0b7b3579281a18c40e9adb2dfd
parentccca301b8fa3692bd9385928118161c65e9ecc79 (diff)
downloadIT.starlight-ea31f46be4d43339417dac7fc135d2be97080c58.tar.gz
IT.starlight-ea31f46be4d43339417dac7fc135d2be97080c58.tar.bz2
IT.starlight-ea31f46be4d43339417dac7fc135d2be97080c58.zip
FileTree: Fix hover styles on highlighted directory (#3153)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
-rw-r--r--.changeset/eight-rocks-rule.md5
-rw-r--r--packages/starlight/user-components/FileTree.astro1
2 files changed, 6 insertions, 0 deletions
diff --git a/.changeset/eight-rocks-rule.md b/.changeset/eight-rocks-rule.md
new file mode 100644
index 00000000..2e26b05d
--- /dev/null
+++ b/.changeset/eight-rocks-rule.md
@@ -0,0 +1,5 @@
+---
+'@astrojs/starlight': patch
+---
+
+Fixes hover styles for highlighted directory in FileTree component.
diff --git a/packages/starlight/user-components/FileTree.astro b/packages/starlight/user-components/FileTree.astro
index ba584b52..2bd532d6 100644
--- a/packages/starlight/user-components/FileTree.astro
+++ b/packages/starlight/user-components/FileTree.astro
@@ -56,6 +56,7 @@ const html = processFileTree(fileTreeHtml, Astro.locals.t('fileTree.directory'))
}
starlight-file-tree :global(.directory > details > summary:hover .highlight .tree-icon) {
+ color: var(--sl-color-text-invert);
fill: currentColor;
}