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
1 change: 1 addition & 0 deletions examples/discover_customization_examples/moon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependsOn:
- '@kbn/data-plugin'
- '@kbn/saved-search-plugin'
- '@kbn/content-management-utils'
- '@kbn/i18n'
tags:
- plugin
- prod
Expand Down
5 changes: 5 additions & 0 deletions examples/discover_customization_examples/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import type { IconType } from '@elastic/eui';
import { EuiButton, EuiContextMenu, EuiFlexItem, EuiPopover } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import type { CoreSetup, CoreStart, Plugin } from '@kbn/core/public';
import type { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
import type {
Expand Down Expand Up @@ -135,6 +136,10 @@ export class DiscoverCustomizationExamplesPlugin implements Plugin {
return (
<EuiFlexItem grow={false}>
<EuiPopover
aria-label={i18n.translate(
'discoverCustomizationExamples.logsViewSelectorAriaLabel',
{ defaultMessage: 'Logs view selector' }
)}
button={
<EuiButton
iconType="arrowDown"
Expand Down
1 change: 1 addition & 0 deletions examples/discover_customization_examples/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@kbn/data-plugin",
"@kbn/saved-search-plugin",
"@kbn/content-management-utils",
"@kbn/i18n",
],
"exclude": ["target/**/*"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ export const SearchResponseWarningsBadge = (props: Props) => {
return (
<EuiPopover
panelPaddingSize="none"
aria-label={i18n.translate('searchResponseWarnings.badgePopoverAriaLabel', {
defaultMessage: 'Search response warnings',
})}
button={
<EuiButton
minWidth={0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import React, { useState } from 'react';
import type { EuiContextMenuPanelDescriptor } from '@elastic/eui';
import { EuiButton, EuiIcon, EuiLink, EuiContextMenu, EuiPopover } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { viewDetailsLabel } from './i18n_utils';
import type { SearchResponseWarning } from '../../types';

Expand Down Expand Up @@ -70,6 +71,9 @@ export const ViewDetailsPopover = (props: Props) => {
return (
<EuiPopover
id="ViewDetailsPopover"
aria-label={i18n.translate('searchResponseWarnings.viewDetailsPopoverAriaLabel', {
defaultMessage: 'View details',
})}
button={
props.displayAsLink ? (
<EuiLink
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ export function FieldTypeFilter<T extends FieldListItem = DataViewField>({
return (
<EuiPopover
id="unifiedFieldTypeFilter"
aria-label={i18n.translate('unifiedFieldList.fieldTypeFilter.popoverAriaLabel', {
defaultMessage: 'Field type filter',
})}
panelProps={{ css: { width: euiTheme.base * 18 } }}
panelPaddingSize="none"
anchorPosition="rightUp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export const TabMenu: React.FC<TabMenuProps> = ({
return (
<EuiPopover
id={contextMenuPopoverId}
aria-label={menuButtonLabel}
isOpen={isPopoverOpen}
panelPaddingSize="none"
hasArrow={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export const TabsBarMenu: React.FC<TabsBarMenuProps> = React.memo(
<EuiPopover
data-test-subj="unifiedTabs_tabsBarMenu"
id={contextMenuPopoverId}
aria-label={menuButtonLabel}
isOpen={isPopoverOpen}
closePopover={closePopover}
panelPaddingSize="none"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ export const TitleDocsPopover: React.FC = () => {
display="inlineBlock"
panelPaddingSize="none"
anchorPosition="upRight"
aria-label={i18n.translate('indexPatternEditor.titleDocsPopover.ariaLabel', {
defaultMessage: 'Index pattern examples',
})}
closePopover={() => setIsOpen(false)}
>
<EuiPopoverTitle paddingSize="s">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import React from 'react';
import { css } from '@emotion/react';
import { EuiModal, EuiModalBody, type UseEuiTheme } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { useMemoCss } from '@kbn/css-utils/public/use_memo_css';

/**
Expand All @@ -35,7 +36,12 @@ export const ImagePreviewModal = ({ imgHTML, closeModal }: Props) => {
const styles = useMemoCss(componentStyles);

return (
<EuiModal onClose={closeModal}>
<EuiModal
aria-label={i18n.translate('indexPatternFieldEditor.imagePreviewModal.ariaLabel', {
defaultMessage: 'Image preview',
})}
onClose={closeModal}
>
<EuiModalBody>
<div
css={styles.previewImageModal}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ export const IndexHeader: FC<PropsWithChildren<IndexHeaderProps>> = ({
isOpen={isOpen}
closePopover={() => setIsOpen(false)}
panelPaddingSize="none"
aria-label={i18n.translate(
'indexPatternManagement.editDataView.moreActionsPopoverAriaLabel',
{
defaultMessage: 'More actions',
}
)}
button={
<EuiButtonIcon
iconType="boxesVertical"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ export const Tabs: React.FC<TabsProps> = ({
<EuiPopover
anchorPosition="downCenter"
data-test-subj="indexedFieldTypeFilterDropdown-popover"
aria-label={filterAriaLabel}
button={
<EuiFilterButton
aria-label={filterAriaLabel}
Expand Down Expand Up @@ -349,6 +350,7 @@ export const Tabs: React.FC<TabsProps> = ({
<EuiPopover
anchorPosition="downCenter"
data-test-subj="schemaFieldTypeFilterDropdown-popover"
aria-label={schemaAriaLabel}
button={
<EuiFilterButton
aria-label={schemaAriaLabel}
Expand Down Expand Up @@ -429,6 +431,7 @@ export const Tabs: React.FC<TabsProps> = ({
<EuiPopover
anchorPosition="downCenter"
data-test-subj="scriptedFieldLanguageFilterDropdown-popover"
aria-label={scriptedFieldAriaLabel}
button={
<EuiFilterButton
aria-label={scriptedFieldAriaLabel}
Expand Down

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 @@ -9,6 +9,7 @@

import React from 'react';
import { EuiFlyout, EuiFlyoutBody, EuiTabbedContent } from '@elastic/eui';
import { i18n } from '@kbn/i18n';

import type { DataView } from '@kbn/data-views-plugin/public';
import { ScriptingSyntax } from './scripting_syntax';
Expand Down Expand Up @@ -59,7 +60,14 @@ export const ScriptingHelpFlyout: React.FC<ScriptingHelpFlyoutProps> = ({
];

return isVisible ? (
<EuiFlyout onClose={onClose} data-test-subj="scriptedFieldsHelpFlyout">
<EuiFlyout
onClose={onClose}
data-test-subj="scriptedFieldsHelpFlyout"
aria-label={i18n.translate(
'indexPatternManagement.fieldEditor.scriptingHelpFlyout.ariaLabel',
{ defaultMessage: 'Help' }
)}
>
<EuiFlyoutBody>
<EuiTabbedContent tabs={tabs} initialSelectedTab={tabs[0]} />
</EuiFlyoutBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const SyntaxSuggestionsPopover: React.FC<SyntaxSuggestionsPopoverProps> =
isOpen={isOpen}
display="inlineBlock"
panelPaddingSize="none"
aria-label={title}
closePopover={() => setIsOpen(false)}
initialFocus="#querySyntaxBasicTableId"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const SolutionsViewBadge: FunctionComponent<{ badgeText: string }> = ({ b
return (
<EuiThemeProvider colorMode={theme.darkMode ? 'dark' : 'light'}>
<EuiPopover
aria-label={badgeText}
button={
<EuiBadge
color="hollow"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ function FlyoutActionsPopover({
return (
<EuiPopover
id="docViewerMoreFlyoutActions"
aria-label={i18n.translate('discover.grid.tableRow.moreFlyoutActionsPopoverAriaLabel', {
defaultMessage: 'More actions',
})}
button={button}
isOpen={isOpen}
closePopover={closePopover}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ export const HoverActionPopover = ({
panelPaddingSize="s"
panelStyle={{ minWidth: '24px' }}
display={display}
aria-label={i18n.translate(
'unifiedDocViewer.observability.traces.details.hoverPopover.ariaLabel',
{ defaultMessage: 'Field value details' }
)}
>
{(title as string) && (
<EuiPopoverTitle
Expand Down
Loading