From dc8b6d5561eb90be9d31396ed1dc8f8258c9cbf7 Mon Sep 17 00:00:00 2001 From: HiDeoo Date: Thu, 24 Apr 2025 17:09:32 +0200 Subject: Fix credit icon color regression (#3148) --- .changeset/metal-chefs-shout.md | 5 +++++ packages/starlight/components/Footer.astro | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .changeset/metal-chefs-shout.md diff --git a/.changeset/metal-chefs-shout.md b/.changeset/metal-chefs-shout.md new file mode 100644 index 00000000..fce20305 --- /dev/null +++ b/.changeset/metal-chefs-shout.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Fixes a regression of the Starlight icon color when using the [`credits`](https://starlight.astro.build/reference/configuration/#credits) configuration option. diff --git a/packages/starlight/components/Footer.astro b/packages/starlight/components/Footer.astro index 99fa834e..070530aa 100644 --- a/packages/starlight/components/Footer.astro +++ b/packages/starlight/components/Footer.astro @@ -48,11 +48,14 @@ import { Icon } from '../components'; text-decoration: none; color: var(--sl-color-gray-3); } - .kudos :global(svg) { - color: var(--sl-color-orange); - } .kudos:hover { color: var(--sl-color-white); } } + + @layer starlight.components { + .kudos :global(svg) { + color: var(--sl-color-orange); + } + } -- cgit