diff --git a/app/lib/frontend/templates/detail_page.dart b/app/lib/frontend/templates/detail_page.dart index d00e3f922b..69108a7dac 100644 --- a/app/lib/frontend/templates/detail_page.dart +++ b/app/lib/frontend/templates/detail_page.dart @@ -95,8 +95,13 @@ class Tab { if (isPrivate) '-private', ]; - d.Node get titleNode => - href == null ? d.text(title) : d.a(href: href, text: title); + d.Node get titleNode => href == null + ? d.text(title) + : d.a( + href: href, + text: title, + attributes: {'role': 'button'}, + ); bool get hasContent => contentNode != null; diff --git a/app/lib/frontend/templates/views/shared/detail/tabs.dart b/app/lib/frontend/templates/views/shared/detail/tabs.dart index c834c58bfb..bbba670f07 100644 --- a/app/lib/frontend/templates/views/shared/detail/tabs.dart +++ b/app/lib/frontend/templates/views/shared/detail/tabs.dart @@ -19,7 +19,6 @@ d.Node detailTabsNode({ children: tabs.map( (t) => d.li( classes: t.titleClasses, - attributes: {'role': 'button'}, child: t.titleNode, ), ), diff --git a/app/test/frontend/golden/my_activity_log_page.html b/app/test/frontend/golden/my_activity_log_page.html index 6415e8f4bf..88357ad922 100644 --- a/app/test/frontend/golden/my_activity_log_page.html +++ b/app/test/frontend/golden/my_activity_log_page.html @@ -157,16 +157,16 @@