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 @@ -22,6 +22,7 @@ import {
EuiFlexItem,
EuiFlexGroup,
EuiHorizontalRule,
useGeneratedHtmlId,
} from '@elastic/eui';

export interface DiscardStarredQueryModalProps {
Expand All @@ -34,15 +35,17 @@ export default function DiscardStarredQueryModal({ onClose }: DiscardStarredQuer
const onTransitionModalDismiss = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
setDismissModalChecked(e.target.checked);
}, []);
const modalTitleId = useGeneratedHtmlId();

return (
<EuiModal
onClose={() => onClose()}
style={{ width: 700 }}
data-test-subj="discard-starred-query-modal"
aria-labelledby={modalTitleId}
>
<EuiModalHeader>
<EuiModalHeaderTitle>
<EuiModalHeaderTitle id={modalTitleId}>
{i18n.translate('esqlEditor.discardStarredQueryModal.title', {
defaultMessage: 'Discard starred query',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,14 @@ export function ErrorsWarningsFooterPopover({
return items;
}, [items, dataErrorsControl]);

const { color, message } = getConstsByType(type, visibleItems.length);
const { color, message, label } = getConstsByType(type, visibleItems.length);
const closePopover = useCallback(() => setIsPopoverOpen(false), [setIsPopoverOpen]);

return (
<EuiFlexItem grow={false}>
<EuiFlexGroup gutterSize="xs" responsive={false} alignItems="center">
<EuiPopover
aria-label={label}
anchorPosition="downLeft"
hasArrow={false}
panelPaddingSize="none"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export function KeyboardShortcuts() {
return (
<>
<EuiPopover
aria-labelledby={labelId}
data-test-subj="editorKeyboardShortcutsPopover"
isOpen={isOpen}
closePopover={() => setIsOpen(false)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ export const HelpPopover: React.FC<{
return (
<>
<EuiPopover
aria-label={helpLabel}
button={
<EuiToolTip position="top" content={helpLabel} disableScreenReaderOutput>
<EuiButtonIcon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ export function SourcesDropdown({ currentSources, onChangeSources }: SourcesDrop
<EuiFormControlLayout compressed isDropdown fullWidth>
<EuiPopover
id={popoverId}
aria-label={i18n.translate('esqlEditor.visor.sourcesDropdownPopoverLabel', {
defaultMessage: 'Data sources',
})}
button={createTrigger()}
isOpen={isPopoverOpen}
closePopover={() => setPopoverIsOpen(false)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ export const AddColumnPopover = ({

return (
<EuiPopover
aria-label={i18n.translate('indexEditor.columnHeaderEdit.addColumnPopoverLabel', {
defaultMessage: 'Add column',
})}
button={triggerButton}
isOpen={isPopoverOpen}
closePopover={closePopover}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ function DocumentationPopover({
}}
>
<EuiPopover
aria-label={i18n.translate('languageDocumentation.popoverAriaLabel', {
defaultMessage: '{lang} reference',
values: {
lang: language,
},
})}
panelClassName="documentation__docs--overlay"
panelPaddingSize="none"
isOpen={isHelpMenuOpen}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ export function ChooseColumnPopover({
);

return (
<EuiPopover button={button} isOpen={isPopoverOpen} closePopover={closePopover}>
<EuiPopover
aria-label={i18n.translate('esql.flyout.chooseColumnPopoverLabel', {
defaultMessage: 'Choose a column',
})}
button={button}
isOpen={isPopoverOpen}
closePopover={closePopover}
>
<EuiSelectable
aria-label={i18n.translate('esql.flyout.chooseColumnList.label', {
defaultMessage: 'Select a column',
Expand Down
Loading