Skip to content

Commit bb29f49

Browse files
update accessibility
1 parent 258b1af commit bb29f49

File tree

9 files changed

+17
-7
lines changed

9 files changed

+17
-7
lines changed

src/lib/components/appwrite-network/map.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<g
115115
role="tooltip"
116116
class="animate-fade-in outline-none"
117+
aria-label={`${marker.city} (${marker.code})`}
117118
onmouseover={() =>
118119
handleSetActiveTooltip(
119120
marker.city,

src/lib/components/marketing/platforms.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@
116116
'lg:border-l': i === 0
117117
}
118118
)}
119-
aria-hidden={i < platforms.length - 1}
120119
>
121120
<img
122121
src={platform.icon}
123122
alt={platform.name}
124123
class="h-8 w-auto grayscale transition-all duration-500 group-hover:grayscale-0"
124+
aria-hidden={i < platforms.length - 1}
125125
/>
126126

127127
<div
@@ -130,6 +130,7 @@
130130
'bg-gradient-to-tl from-transparent to-transparent',
131131
'hover:from-(--primary-color,_#fff)/4 hover:to-(--secondary-color,_transparent)/10'
132132
)}
133+
aria-hidden={i < platforms.length - 1}
133134
>
134135
<Noise opacity={0.1} />
135136
</div>

src/routes/(marketing)/(components)/bento/(animations)/auth.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
>
5050
<div class="space-y-3 px-3 pt-2 pb-4">
5151
<div class="flex items-center gap-2">
52-
<img src="/images/icons/illustrated/dark/auth.png" alt="Auth" class="size-7" />
52+
<img src="/images/icons/illustrated/dark/auth.png" alt="Auth icon" class="size-7" />
5353
<h3 class="font-aeonik-pro text-label text-primary">Auth</h3>
5454
</div>
5555
<p class="text-sub-body text-primary max-w-lg font-medium">

src/routes/(marketing)/(components)/bento/(animations)/functions.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<div class="flex items-center gap-2">
9595
<img
9696
src="/images/icons/illustrated/dark/functions.png"
97-
alt="Functions"
97+
alt="Functions icon"
9898
class="size-7"
9999
/>
100100
<h3 class="font-aeonik-pro text-label text-primary">Functions</h3>

src/routes/(marketing)/(components)/bento/(animations)/messaging.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<div class="flex items-center gap-2">
5959
<img
6060
src="/images/icons/illustrated/dark/messaging.png"
61-
alt="Messaging"
61+
alt="Messaging icon"
6262
class="size-7"
6363
/>
6464
<h3 class="font-aeonik-pro text-label text-primary">Messaging</h3>

src/routes/(marketing)/(components)/bento/(animations)/realtime.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@
6464
>
6565
<div class="space-y-3 px-3 pt-2 pb-4">
6666
<div class="flex items-center gap-2">
67-
<img src="/images/icons/illustrated/dark/realtime.png" alt="Realtime" class="size-7" />
67+
<img
68+
src="/images/icons/illustrated/dark/realtime.png"
69+
alt="Realtime icon"
70+
class="size-7"
71+
/>
6872
<h3 class="font-aeonik-pro text-label text-primary">Realtime</h3>
6973
</div>
7074
<p class="text-sub-body text-primary max-w-lg font-medium">

src/routes/(marketing)/(components)/bento/(animations)/sites.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
>
105105
<div class="space-y-3 px-3 pt-2 pb-4">
106106
<div class="flex items-center gap-2">
107-
<img src="/images/icons/illustrated/dark/sites.png" alt="Sites" class="size-7" />
107+
<img src="/images/icons/illustrated/dark/sites.png" alt="Sites icon" class="size-7" />
108108
<h3 class="font-aeonik-pro text-label text-primary">Sites</h3>
109109
</div>
110110
<p class="text-sub-body text-primary max-w-lg font-medium">

src/routes/(marketing)/(components)/bento/(animations)/storage.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@
6262
>
6363
<div class="space-y-3 px-3 pt-2 pb-4">
6464
<div class="flex items-center gap-2">
65-
<img src="/images/icons/illustrated/dark/storage.png" alt="Storage" class="size-7" />
65+
<img
66+
src="/images/icons/illustrated/dark/storage.png"
67+
alt="Storage icon"
68+
class="size-7"
69+
/>
6670
<h3 class="font-aeonik-pro text-label text-primary">Storage</h3>
6771
</div>
6872
<p class="text-sub-body text-primary max-w-lg font-medium">
-296 Bytes
Loading

0 commit comments

Comments
 (0)