Skip to content

Commit b50a320

Browse files
✨ Improve accessibility by enhancing text opacity for better readability in various components
1 parent 452d456 commit b50a320

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

resources/css/app.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ nav > ul > li > ul {
156156
@apply bg-gray-100 ring-gray-300 dark:bg-black/50 dark:ring-gray-700/70;
157157
}
158158

159+
.DocSearch-Button:hover .DocSearch-Button-Placeholder {
160+
@apply text-black dark:text-white;
161+
}
162+
159163
.DocSearch-Button .DocSearch-Search-Icon {
160164
height: 0.87rem;
161165
@apply text-gray-500 dark:text-white/60;
@@ -169,7 +173,7 @@ nav > ul > li > ul {
169173
}
170174

171175
.DocSearch-Button-Placeholder {
172-
@apply hidden pr-20 text-sm min-[500px]:block dark:text-white/60;
176+
@apply hidden pr-20 text-sm text-black/60 min-[500px]:block dark:text-white/60;
173177
}
174178

175179
.DocSearch-Button-Keys {

resources/views/components/toc-and-sponsors.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{-- On this page --}}
2-
<h3 class="inline-flex items-center gap-1.5 text-sm opacity-50">
2+
<h3 class="inline-flex items-center gap-1.5 text-sm opacity-60">
33
{{-- Icon --}}
44
<x-icons.stacked-lines class="size-[18px]" />
55

@@ -37,7 +37,7 @@ class="mt-5 grid w-40 place-items-center gap-2 rounded-xl bg-pink-100 px-5 pb-3
3737
</a>
3838

3939
{{-- Featured sponsors --}}
40-
<h3 class="inline-flex items-center gap-1.5 pt-3.5 text-sm opacity-50">
40+
<h3 class="inline-flex items-center gap-1.5 pt-3.5 text-sm opacity-60">
4141
{{-- Icon --}}
4242
<x-icons.star-circle class="size-[18px]" />
4343

@@ -50,7 +50,7 @@ class="mt-5 grid w-40 place-items-center gap-2 rounded-xl bg-pink-100 px-5 pb-3
5050

5151
{{-- Corporate sponsors --}}
5252
<h3
53-
class="mt-5 inline-flex items-center gap-1.5 border-t border-t-black/20 pt-3.5 text-sm opacity-50 dark:border-t-white/15"
53+
class="mt-5 inline-flex items-center gap-1.5 border-t border-t-black/20 pt-3.5 text-sm opacity-60 dark:border-t-white/15"
5454
>
5555
{{-- Icon --}}
5656
<x-icons.briefcase class="size-[18px]" />

resources/views/docs/index.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class="mt-5"
6363
<x-link-button href="{{ $previousPage['path'] }}">
6464
<div class="self-center justify-self-start">
6565
<div
66-
class="flex items-center justify-start gap-1.5 text-gray-500"
66+
class="flex items-center justify-start gap-1.5 opacity-60"
6767
>
6868
<x-icons.right-arrow
6969
class="size-3 shrink-0 -scale-x-100"
@@ -79,7 +79,7 @@ class="size-3 shrink-0 -scale-x-100"
7979
<x-link-button href="{{ $nextPage['path'] }}">
8080
<div class="self-center justify-self-end">
8181
<div
82-
class="flex items-center justify-end gap-1.5 text-gray-500"
82+
class="flex items-center justify-end gap-1.5 opacity-60"
8383
>
8484
<div class="text-sm">Next</div>
8585
<x-icons.right-arrow class="size-3 shrink-0" />

0 commit comments

Comments
 (0)