From b8fbe70c14da990b72227327408ad24dbe1d60e6 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Date: Mon, 12 Jul 2021 10:19:00 +0200 Subject: [PATCH] A11y: ARIA hide image/link duplicate in news panel (#36642) * fix(a11y): Hide image/link duplicate * fix: proper heading and time markup --- public/app/plugins/panel/news/NewsPanel.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/public/app/plugins/panel/news/NewsPanel.tsx b/public/app/plugins/panel/news/NewsPanel.tsx index bb38a28fa0e..f28d33489a8 100755 --- a/public/app/plugins/panel/news/NewsPanel.tsx +++ b/public/app/plugins/panel/news/NewsPanel.tsx @@ -80,30 +80,33 @@ export class NewsPanel extends PureComponent { {news.map((item, index) => { return ( -
+
{showImage && item.ogImage && ( - + {item.title} )}
-
{dateTimeFormat(item.date, { format: 'MMM DD' })}
+ -
{item.title}
+

{item.title}

-
+
); })}