Skip to content

Commit

Permalink
Better a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonStoltz committed Nov 11, 2020
1 parent 2737c20 commit e847930
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface GenericConfirmationModalProps {
description: ReactNode;
subheading: ReactNode;
target: string;
title: ReactNode;
title: string;
onClose(): void;
onSave(): void;
}
Expand All @@ -46,7 +46,7 @@ export const GenericConfirmationModal: React.FC<GenericConfirmationModalProps> =
};

return (
<EuiModal onClose={onClose}>
<EuiModal onClose={onClose} initialFocus=".euiFieldText" aria-label={title}>
<EuiModalHeader>
<EuiModalHeaderTitle>{title}</EuiModalHeaderTitle>
</EuiModalHeader>
Expand Down

0 comments on commit e847930

Please sign in to comment.