From e93ae2cc5bbc8f083dc0cb0bdb24af5042c969ae Mon Sep 17 00:00:00 2001 From: Tim Roes Date: Tue, 7 Aug 2018 15:11:55 +0200 Subject: [PATCH] Add proper aria-label for close inspector (#21719) --- src/ui/public/flyout/flyout_session.tsx | 1 + src/ui/public/inspector/inspector.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ui/public/flyout/flyout_session.tsx b/src/ui/public/flyout/flyout_session.tsx index 185c7378fa86a..58bb5d625ed31 100644 --- a/src/ui/public/flyout/flyout_session.tsx +++ b/src/ui/public/flyout/flyout_session.tsx @@ -85,6 +85,7 @@ class FlyoutSession extends EventEmitter { export function openFlyout( flyoutChildren: React.ReactNode, flyoutProps: { + closeButtonAriaLabel?: string; onClose?: () => void; 'data-test-subj'?: string; } = {} diff --git a/src/ui/public/inspector/inspector.tsx b/src/ui/public/inspector/inspector.tsx index 7d19674945a6a..1fa3d7f54c909 100644 --- a/src/ui/public/inspector/inspector.tsx +++ b/src/ui/public/inspector/inspector.tsx @@ -69,6 +69,7 @@ function open(adapters: Adapters, options: InspectorOptions = {}): InspectorSess return openFlyout(, { 'data-test-subj': 'inspectorPanel', + closeButtonAriaLabel: 'Close Inspector', }); }