Skip to content

Commit

Permalink
Add proper aria-label for close inspector (#21719) (#21725)
Browse files Browse the repository at this point in the history
  • Loading branch information
timroes authored Aug 7, 2018
1 parent c88b567 commit fb32fac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/public/flyout/flyout_session.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class FlyoutSession extends EventEmitter {
export function openFlyout(
flyoutChildren: React.ReactNode,
flyoutProps: {
closeButtonAriaLabel?: string;
onClose?: () => void;
'data-test-subj'?: string;
} = {}
Expand Down
1 change: 1 addition & 0 deletions src/ui/public/inspector/inspector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function open(adapters: Adapters, options: InspectorOptions = {}): InspectorSess

return openFlyout(<InspectorPanel views={views} adapters={adapters} title={options.title} />, {
'data-test-subj': 'inspectorPanel',
closeButtonAriaLabel: 'Close Inspector',
});
}

Expand Down

0 comments on commit fb32fac

Please sign in to comment.