Skip to content

Commit d9b41c5

Browse files
committed
fix: correct header color in dark mode and reactivate it
1 parent 4810a86 commit d9b41c5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/components/widgets/Header.astro

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,19 @@ const props = Astro.props;
123123
<>
124124
<button
125125
type="button"
126-
class="hover:text-link dark:hover:text-white px-4 py-3 flex items-center whitespace-nowrap"
126+
class="hover:text-link dark:text-gray-400 dark:hover:text-white px-4 py-3 flex items-center whitespace-nowrap"
127127
>
128128
{text}{' '}
129129
<Icon name="tabler:chevron-down" class="w-3.5 h-3.5 ml-0.5 rtl:ml-0 rtl:mr-0.5 hidden lg:inline" />
130130
</button>
131-
<ul class="dropdown-menu lg:backdrop-blur-lg dark:lg:bg-dark rounded lg:absolute pl-4 lg:pl-0 lg:hidden font-medium lg:bg-white/90 lg:min-w-[200px] drop-shadow-xl">
131+
<ul class="dropdown-menu lg:backdrop-blur-lg dark:lg:bg-dark rounded lg:absolute pl-4 lg:pl-0 lg:hidden font-medium lg:bg-white/90 lg:min-w-[200px] drop-shadow-xl">
132132
{links.map(({ text: text2, href: href2, links: links2, target = '' }) => (
133133
<li class={links2?.length ? 'dropdown2' : ''}>
134134
{links2 && links2.length ? (
135135
<div class="relative">
136136
<button
137137
type="button"
138-
class="hover:text-link dark:hover:text-white px-4 py-3 flex items-center whitespace-nowrap"
138+
class="hover:text-link dark:text-gray-400 dark:hover:text-white px-4 py-3 flex items-center whitespace-nowrap"
139139
>
140140
{text2}{' '}
141141
<Icon
@@ -149,7 +149,7 @@ const props = Astro.props;
149149
<li>
150150
<a
151151
class:list={[
152-
'flex gap-2 items-center first:rounded-t last:rounded-b lg:hover:bg-gray-200 hover:text-link dark:hover:text-white dark:hover:bg-gray-700 py-2 px-5 whitespace-no-wrap',
152+
'flex gap-2 items-center first:rounded-t last:rounded-b lg:hover:bg-gray-200 hover:text-link dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-700 py-2 px-5 whitespace-no-wrap',
153153
{ 'aw-link-active': href3 === currentPath },
154154
]}
155155
href={href3}
@@ -178,7 +178,7 @@ const props = Astro.props;
178178
) : (
179179
<a
180180
class:list={[
181-
'flex gap-2 first:rounded-t last:rounded-b lg:hover:bg-gray-200 hover:text-link dark:hover:text-white dark:hover:bg-gray-700 py-2 px-5 whitespace-no-wrap items-center',
181+
'flex gap-2 first:rounded-t last:rounded-b lg:hover:bg-gray-200 hover:text-link dark:text-gray-400 dark:hover:text-white dark:hover:bg-gray-700 py-2 px-5 whitespace-no-wrap items-center',
182182
{ 'aw-link-active': href2 === currentPath },
183183
]}
184184
href={href2}
@@ -208,7 +208,7 @@ const props = Astro.props;
208208
) : (
209209
<a
210210
class:list={[
211-
'hover:text-link dark:hover:text-white px-4 py-3 flex items-center whitespace-nowrap gap-2',
211+
'hover:text-link dark:text-gray-400 dark:hover:text-white px-4 py-3 flex items-center whitespace-nowrap gap-2',
212212
{ 'aw-link-active': href === currentPath },
213213
]}
214214
href={href}
@@ -347,14 +347,14 @@ const props = Astro.props;
347347
>
348348
<div class="items-center flex justify-between w-full lg:w-auto">
349349
<div class="flex">
350-
<!-- {
350+
{
351351
showToggleTheme && (
352352
<ToggleTheme
353353
iconClass="w-6 h-6 lg:w-5 lg:h-5 lg:inline-block"
354354
iconName={isDark ? 'tabler:sun' : 'tabler:moon'}
355355
/>
356356
)
357-
} -->
357+
}
358358
{
359359
showRssFeed && (
360360
<a

0 commit comments

Comments
 (0)