feat: add aria-label to BackLink component (#10)

Adds an `aria-label` to the `BackLink` component to improve screen reader accessibility. By default, it was an icon next to text that functioned as a single link, but providing an explicit `aria-label` makes its target clearer.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
Ralksta
2026-03-27 10:52:39 +01:00
committed by GitHub
parent 59153c9f48
commit af7e2e9206

View File

@@ -12,7 +12,7 @@ interface BackLinkProps {
export function BackLink({ href, label }: BackLinkProps) { export function BackLink({ href, label }: BackLinkProps) {
return ( return (
<Link href={href} className="album-header__back"> <Link href={href} className="album-header__back" aria-label={`Back to ${label}`}>
<svg <svg
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"