diff options
author | Saad Khan | 2025-04-29 18:52:48 +0500 |
---|---|---|
committer | GitHub | 2025-04-29 15:52:48 +0200 |
commit | ea31f46be4d43339417dac7fc135d2be97080c58 (patch) | |
tree | 1598f9dcf8d5ea0b7b3579281a18c40e9adb2dfd | |
parent | ccca301b8fa3692bd9385928118161c65e9ecc79 (diff) | |
download | IT.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.md | 5 | ||||
-rw-r--r-- | packages/starlight/user-components/FileTree.astro | 1 |
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; } |