diff --git a/app/lib/frontend/templates/views/landing/mini_list.dart b/app/lib/frontend/templates/views/landing/mini_list.dart index 86778c5f7a..a739ecee44 100644 --- a/app/lib/frontend/templates/views/landing/mini_list.dart +++ b/app/lib/frontend/templates/views/landing/mini_list.dart @@ -27,8 +27,17 @@ d.Node _title(String sectionTag, PackageView p) { return d.a( classes: ['mini-list-item-title'], href: urls.pkgPageUrl(p.name), - attributes: {'data-ga-click-event': 'landing-$sectionTag-card-title'}, - child: d.h3(text: p.name), + attributes: { + 'data-ga-click-event': 'landing-$sectionTag-card-title', + }, + child: d.span( + classes: ['mini-list-item-title-text'], + text: p.name, + attributes: { + 'role': 'heading', + 'aria-level': '2', + }, + ), ); } diff --git a/app/test/frontend/golden/landing_page.html b/app/test/frontend/golden/landing_page.html index c4a31b37bf..dddc4c3f4d 100644 --- a/app/test/frontend/golden/landing_page.html +++ b/app/test/frontend/golden/landing_page.html @@ -130,7 +130,7 @@
flutter_titanium is awesome
@@ -153,7 +153,7 @@neon is awesome
@@ -167,7 +167,7 @@oxygen is awesome
diff --git a/pkg/_pub_shared/lib/validation/html/html_validation.dart b/pkg/_pub_shared/lib/validation/html/html_validation.dart index 8a4237f246..73f685653e 100644 --- a/pkg/_pub_shared/lib/validation/html/html_validation.dart +++ b/pkg/_pub_shared/lib/validation/html/html_validation.dart @@ -178,7 +178,7 @@ void validateHtml(Node root) { } // "role"="