diff --git a/app/lib/dartdoc/dartdoc_page.dart b/app/lib/dartdoc/dartdoc_page.dart index 2764b465ff..3f311085a8 100644 --- a/app/lib/dartdoc/dartdoc_page.dart +++ b/app/lib/dartdoc/dartdoc_page.dart @@ -153,8 +153,11 @@ extension DartDocPageRender on DartDocPage { href: '/', classes: ['hidden-xs'], child: d.img( - // TODO: Move this into a class - attributes: {'style': 'height: 30px; margin-right: 1em;'}, + attributes: { + 'aria-label': 'Go to the landing page of pub.dev', + // TODO: Move this into a class + 'style': 'height: 30px; margin-right: 1em;', + }, image: d.Image.decorative( src: staticUrls.dartLogoSvg, height: 30, diff --git a/app/lib/frontend/templates/views/shared/site_header.dart b/app/lib/frontend/templates/views/shared/site_header.dart index d45de6f747..3430fef177 100644 --- a/app/lib/frontend/templates/views/shared/site_header.dart +++ b/app/lib/frontend/templates/views/shared/site_header.dart @@ -24,6 +24,9 @@ d.Node siteHeaderNode({ d.a( classes: ['logo'], href: '/', + attributes: { + 'aria-label': 'Go to the landing page of pub.dev', + }, child: d.img( classes: ['site-logo'], image: d.Image.decorative( diff --git a/app/test/frontend/golden/authorized_page.html b/app/test/frontend/golden/authorized_page.html index 98e737892c..2ecd7a0ac2 100644 --- a/app/test/frontend/golden/authorized_page.html +++ b/app/test/frontend/golden/authorized_page.html @@ -35,7 +35,7 @@