Skip to content

Commit 366dc79

Browse files
✨ Enhance footer accessibility with ARIA attributes and improve link security with rel attributes
1 parent b0d18bb commit 366dc79

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

resources/views/components/footer.blade.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,20 @@ class="flex flex-col items-stretch gap-x-20 gap-y-5 px-6 pt-10 lg:flex-row lg:it
208208
}
209209
"
210210
class="flex flex-col items-center gap-3.5 lg:items-start"
211+
aria-labelledby="footer-about-heading"
211212
>
212213
{{-- Logo --}}
213214
<div class="opacity-0 motion-reduce:opacity-100">
214215
<x-nav.logo />
215216
</div>
216217

217218
{{-- Description --}}
219+
<h2
220+
id="footer-about-heading"
221+
class="sr-only"
222+
>
223+
About Filament
224+
</h2>
218225
<p
219226
class="text-center font-afacad text-lg opacity-0 motion-reduce:opacity-100 lg:max-w-[22rem] lg:text-left"
220227
>
@@ -245,6 +252,7 @@ class="text-center font-afacad text-lg opacity-0 motion-reduce:opacity-100 lg:ma
245252
}
246253
"
247254
class="flex flex-wrap items-center gap-3.5 text-hurricane opacity-0 motion-reduce:opacity-100"
255+
aria-label="Social media links"
248256
>
249257
<div class="opacity-0 motion-reduce:opacity-100">
250258
<a
@@ -253,6 +261,7 @@ class="flex flex-wrap items-center gap-3.5 text-hurricane opacity-0 motion-reduc
253261
class="grid size-10 place-items-center rounded-xl bg-merino transition duration-200 hover:bg-[#ffe8ce] hover:text-black motion-reduce:transition-none"
254262
aria-label="Follow Filament on Twitter"
255263
title="Filament on Twitter/X"
264+
rel="noopener"
256265
>
257266
<x-icons.twitter-x class="size-4" />
258267
</a>
@@ -264,6 +273,7 @@ class="grid size-10 place-items-center rounded-xl bg-merino transition duration-
264273
class="grid size-10 place-items-center rounded-xl bg-merino transition duration-200 hover:bg-[#ffe8ce] hover:text-black motion-reduce:transition-none"
265274
aria-label="Join the Filament Discord community"
266275
title="Filament on Discord"
276+
rel="noopener"
267277
>
268278
<x-icons.discord class="size-5" />
269279
</a>
@@ -275,6 +285,7 @@ class="grid size-10 place-items-center rounded-xl bg-merino transition duration-
275285
class="grid size-10 place-items-center rounded-xl bg-merino transition duration-200 hover:bg-[#ffe8ce] hover:text-black motion-reduce:transition-none"
276286
aria-label="View Filament on GitHub"
277287
title="Filament on GitHub"
288+
rel="noopener"
278289
>
279290
<x-icons.github class="size-5" />
280291
</a>

0 commit comments

Comments
 (0)