From e3e8a7965abcda355c99d7b223f4bc748feb7d15 Mon Sep 17 00:00:00 2001 From: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Date: Tue, 23 May 2023 17:19:10 +0200 Subject: [PATCH] A11y: Make list type picker display tooltip on hover (#68798) * Change ariaLabel to description * Description fallback for aria-label * Add ariaLabel ass fallback for description --- .../src/components/Forms/RadioButtonGroup/RadioButton.tsx | 4 ++-- public/app/features/search/page/components/ActionRow.tsx | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx b/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx index 7c1d0768e10..e5394ae1263 100644 --- a/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx +++ b/packages/grafana-ui/src/components/Forms/RadioButtonGroup/RadioButton.tsx @@ -55,10 +55,10 @@ export const RadioButton = React.forwardRef( id={id} checked={active} name={name} - aria-label={ariaLabel} + aria-label={ariaLabel || description} ref={ref} /> -