diff --git a/public/app/features/dimensions/editors/ResourcePicker.tsx b/public/app/features/dimensions/editors/ResourcePicker.tsx index 209403bd3ff..488c32c8970 100644 --- a/public/app/features/dimensions/editors/ResourcePicker.tsx +++ b/public/app/features/dimensions/editors/ResourcePicker.tsx @@ -96,9 +96,18 @@ export const ResourcePicker = (props: Props) => { /> )} - {/* TODO: fix keyboard a11y */} - {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */} -
+
{ + if (e.key === 'Enter') { + showPopper(); + } + }} + role="button" + tabIndex={0} + > {size === ResourcePickerSize.SMALL && renderSmallResourcePicker()} {size === ResourcePickerSize.NORMAL && renderNormalResourcePicker()}