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:
@@ -12,7 +12,7 @@ interface BackLinkProps {
|
||||
|
||||
export function BackLink({ href, label }: BackLinkProps) {
|
||||
return (
|
||||
<Link href={href} className="album-header__back">
|
||||
<Link href={href} className="album-header__back" aria-label={`Back to ${label}`}>
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
|
||||
Reference in New Issue
Block a user