Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import React from 'react';
import { EuiFlyout } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { action } from '@storybook/addon-actions';
import {
StoriesProvider,
Expand All @@ -21,9 +22,13 @@ export default {
title: 'Connection Details/Flyout',
};

const flyoutAriaLabel = i18n.translate('cloud.connectionDetails.flyout.ariaLabel', {
defaultMessage: 'Connection details',
});

export const Default = () => {
return (
<EuiFlyout size="s" onClose={() => {}}>
<EuiFlyout size="s" onClose={() => {}} aria-label={flyoutAriaLabel}>
<StoriesProvider onTelemetryEvent={action('onTelemetryEvent')}>
<ConnectionDetailsFlyoutContent />
</StoriesProvider>
Expand All @@ -33,7 +38,7 @@ export const Default = () => {

export const CreationError = () => {
return (
<EuiFlyout size="s" onClose={() => {}}>
<EuiFlyout size="s" onClose={() => {}} aria-label={flyoutAriaLabel}>
<StoriesProviderKeyCreationError>
<ConnectionDetailsFlyoutContent />
</StoriesProviderKeyCreationError>
Expand All @@ -43,7 +48,7 @@ export const CreationError = () => {

export const MissingPermissions = () => {
return (
<EuiFlyout size="s" onClose={() => {}}>
<EuiFlyout size="s" onClose={() => {}} aria-label={flyoutAriaLabel}>
<StoriesProviderNoKeyPermissions>
<ConnectionDetailsFlyoutContent />
</StoriesProviderNoKeyPermissions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export const Label: React.FC<{ learnMoreUrl?: string }> = ({ learnMoreUrl }) =>
</EuiFlexItem>
<EuiFlexItem>
<EuiPopover
aria-label={i18n.translate(
'cloud.connectionDetails.tab.endpoints.cloudIdField.helpPopoverAriaLabel',
{
defaultMessage: 'Cloud ID help',
}
)}
button={
<EuiButtonIcon
iconType="question"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ const Label: FC<{ learnMoreUrl: string }> = ({ learnMoreUrl }) => {
</EuiFlexItem>
<EuiFlexItem>
<EuiPopover
aria-label={i18n.translate('cloud.deploymentDetails.cloudIdHelpPopover.ariaLabel', {
defaultMessage: 'Cloud ID help',
})}
button={
<EuiButtonIcon
iconType="question"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
EuiModalFooter,
EuiModalHeader,
EuiModalHeaderTitle,
useGeneratedHtmlId,
} from '@elastic/eui';
import { useDeploymentDetails } from './services';
import { DeploymentDetails } from './deployment_details';
Expand All @@ -29,17 +30,19 @@ interface Props {

export const DeploymentDetailsModal: FC<Props> = ({ closeModal }) => {
const { apiKeysLearnMoreUrl } = useDeploymentDetails();
const modalTitleId = useGeneratedHtmlId();

return (
<EuiModal
aria-labelledby={modalTitleId}
onClose={() => {
closeModal();
}}
style={{ width: 600 }}
data-test-subj="deploymentDetailsModal"
>
<EuiModalHeader>
<EuiModalHeaderTitle>
<EuiModalHeaderTitle id={modalTitleId}>
{i18n.translate('cloud.deploymentDetails.helpMenuLinks.connectionDetails', {
defaultMessage: 'Connection details',
})}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
EuiSpacer,
EuiLink,
EuiLoadingSpinner,
htmlIdGenerator,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n-react';
Expand Down Expand Up @@ -101,6 +102,8 @@ export class FlyoutClass extends Component<
FlyoutProps & EuiTablePersistInjectedProps<any>,
FlyoutState
> {
private flyoutTitleId = htmlIdGenerator()();

constructor(props: FlyoutProps & EuiTablePersistInjectedProps<unknown>) {
super(props);

Expand Down Expand Up @@ -637,10 +640,15 @@ export class FlyoutClass extends Component<
}

return (
<EuiFlyout onClose={close} size="s" data-test-subj="importSavedObjectsFlyout">
<EuiFlyout
onClose={close}
size="s"
data-test-subj="importSavedObjectsFlyout"
aria-labelledby={this.flyoutTitleId}
>
<EuiFlyoutHeader hasBorder>
<EuiTitle size="m">
<h2>
<h2 id={this.flyoutTitleId}>
<FormattedMessage
id="savedObjectsManagement.objectsTable.flyout.importSavedObjectTitle"
defaultMessage="Import saved objects"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ export class Table extends PureComponent<TableProps, TableState> {
button={button}
isOpen={this.state.isExportPopoverOpen}
closePopover={this.closeExportPopover}
aria-label={i18n.translate(
'savedObjectsManagement.objectsTable.table.exportPopoverAriaLabel',
{ defaultMessage: 'Export options' }
)}
>
<EuiFormRow
label={
Expand Down
Loading