diff --git a/x-pack/platform/plugins/shared/osquery/public/actions/components/add_tags_flyout.tsx b/x-pack/platform/plugins/shared/osquery/public/actions/components/add_tags_flyout.tsx index 68b26ee4dd68f..9eb8945e8cb32 100644 --- a/x-pack/platform/plugins/shared/osquery/public/actions/components/add_tags_flyout.tsx +++ b/x-pack/platform/plugins/shared/osquery/public/actions/components/add_tags_flyout.tsx @@ -19,6 +19,7 @@ import { EuiFormRow, EuiComboBox, EuiText, + useGeneratedHtmlId, } from '@elastic/eui'; import type { EuiComboBoxOptionOption } from '@elastic/eui'; import { i18n } from '@kbn/i18n'; @@ -68,6 +69,7 @@ const AddTagsFlyoutComponent: React.FC = ({ onClose, onSave, }) => { + const flyoutTitleId = useGeneratedHtmlId(); const [localTags, setLocalTags] = useState(currentTags); const { tags: availableTags } = useHistoryTags(); const { mutate: updateTags, isLoading: isSaving } = useUpdateActionTags(); @@ -125,10 +127,10 @@ const AddTagsFlyoutComponent: React.FC = ({ }, [actionId, localTags, updateTags, onSave, onClose]); return ( - + -

{FLYOUT_TITLE}

+

{FLYOUT_TITLE}

diff --git a/x-pack/platform/plugins/shared/osquery/public/actions/components/run_by_filter_popover.tsx b/x-pack/platform/plugins/shared/osquery/public/actions/components/run_by_filter_popover.tsx index bf85329429fff..a0627f0e77de2 100644 --- a/x-pack/platform/plugins/shared/osquery/public/actions/components/run_by_filter_popover.tsx +++ b/x-pack/platform/plugins/shared/osquery/public/actions/components/run_by_filter_popover.tsx @@ -145,6 +145,7 @@ const RunByFilterPopoverComponent: React.FC = ({ panelPaddingSize="none" repositionOnScroll panelProps={PANEL_PROPS} + aria-label={RUN_BY_LABEL} > = ({ panelPaddingSize="none" repositionOnScroll panelProps={PANEL_PROPS} + aria-label={SOURCE_LABEL} > {(list) =>
{list}
} diff --git a/x-pack/platform/plugins/shared/osquery/public/actions/components/tags_column.tsx b/x-pack/platform/plugins/shared/osquery/public/actions/components/tags_column.tsx index 02eec13bdbd48..65d26a0851de0 100644 --- a/x-pack/platform/plugins/shared/osquery/public/actions/components/tags_column.tsx +++ b/x-pack/platform/plugins/shared/osquery/public/actions/components/tags_column.tsx @@ -62,6 +62,7 @@ const TagsColumnComponent: React.FC = ({ tags }) => { closePopover={closePopover} repositionOnScroll data-test-subj="tagsColumnPopover" + aria-label={POPOVER_TITLE} > {POPOVER_TITLE} diff --git a/x-pack/platform/plugins/shared/osquery/public/actions/components/tags_filter_popover.tsx b/x-pack/platform/plugins/shared/osquery/public/actions/components/tags_filter_popover.tsx index f5ba682f85d10..8f6aeca4456f6 100644 --- a/x-pack/platform/plugins/shared/osquery/public/actions/components/tags_filter_popover.tsx +++ b/x-pack/platform/plugins/shared/osquery/public/actions/components/tags_filter_popover.tsx @@ -110,6 +110,7 @@ const TagsFilterPopoverComponent: React.FC = ({ panelPaddingSize="none" repositionOnScroll panelProps={PANEL_PROPS} + aria-label={TAGS_LABEL} > { + const confirmModalTitleId = useGeneratedHtmlId(); const bodyText = useMemo( () => i18n.translate('xpack.osquery.duplicateConfirmation.body', { @@ -48,8 +49,12 @@ export const useDuplicateGuard = ({ copyMutation, resourceType }: UseDuplicateGu setIsFormDirty(isDirty); }, []); + const titleProps = useMemo(() => ({ id: confirmModalTitleId }), [confirmModalTitleId]); + const duplicateModal = isDuplicateModalVisible ? ( = ({ closePopover={closePopover} panelPaddingSize="none" anchorPosition="leftCenter" + aria-label={actionsAriaLabel} > diff --git a/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/column_picker_popover.tsx b/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/column_picker_popover.tsx index a7b1739b12a67..1d09d6e690969 100644 --- a/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/column_picker_popover.tsx +++ b/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/column_picker_popover.tsx @@ -87,6 +87,7 @@ const ColumnPickerPopoverComponent: React.FC = ({ panelPaddingSize="none" repositionOnScroll panelProps={panelProps} + aria-label={COLUMNS_LABEL} > {(list) => ( diff --git a/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/created_by_filter_popover.tsx b/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/created_by_filter_popover.tsx index 69a998ae9a27f..acad7fc405dec 100644 --- a/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/created_by_filter_popover.tsx +++ b/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/created_by_filter_popover.tsx @@ -135,6 +135,7 @@ const CreatedByFilterPopoverComponent: React.FC = ( panelPaddingSize="none" repositionOnScroll panelProps={panelProps} + aria-label={CREATED_BY_LABEL} > = panelPaddingSize="none" repositionOnScroll panelProps={panelProps} + aria-label={label} > {(list) =>
{list}
} diff --git a/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/sort_fields_popover.tsx b/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/sort_fields_popover.tsx index 78c235b5ffcb6..cf0d53e2d9ea5 100644 --- a/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/sort_fields_popover.tsx +++ b/x-pack/platform/plugins/shared/osquery/public/components/table_toolbar/sort_fields_popover.tsx @@ -127,6 +127,7 @@ const SortFieldsPopoverComponent: React.FC = ({ panelPaddingSize="none" repositionOnScroll panelProps={panelProps} + aria-label={SORT_FIELDS_LABEL} >
diff --git a/x-pack/platform/plugins/shared/osquery/public/live_queries/form/row_kebab_menu.tsx b/x-pack/platform/plugins/shared/osquery/public/live_queries/form/row_kebab_menu.tsx index 26148ff4bc745..5bab2cbe0214d 100644 --- a/x-pack/platform/plugins/shared/osquery/public/live_queries/form/row_kebab_menu.tsx +++ b/x-pack/platform/plugins/shared/osquery/public/live_queries/form/row_kebab_menu.tsx @@ -95,6 +95,7 @@ const RowKebabMenuContent: React.FC = React.memo( closePopover={close} panelPaddingSize="none" anchorPosition="downLeft" + aria-label={kebabLabel} > diff --git a/x-pack/platform/plugins/shared/osquery/public/packs/packs_table.tsx b/x-pack/platform/plugins/shared/osquery/public/packs/packs_table.tsx index b3a2644286406..81e9014d9e1a5 100644 --- a/x-pack/platform/plugins/shared/osquery/public/packs/packs_table.tsx +++ b/x-pack/platform/plugins/shared/osquery/public/packs/packs_table.tsx @@ -72,7 +72,14 @@ export const AgentPoliciesPopover = ({ agentPolicyIds = [] }: { agentPolicyIds?: } return ( - + {agentPolicyIds?.map((policyId) => (