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 @@ -71,7 +71,7 @@ export const Source: React.FC<SourceProps> = ({ node, index }) => {
label={
comment ? (
<EuiToolTip content={comment}>
<span>
<span tabIndex={0}>
Source {index} <EuiIcon type="editorComment" color="subdued" />
</span>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ export const FileClashIcon: FC<Props> = ({ fileClash }) => {
case CLASH_ERROR_TYPE.ERROR:
return (
<EuiToolTip content={getClashText(fileClash)}>
<EuiBadge color={euiTheme.colors.backgroundBaseDanger}>
<EuiBadge tabIndex={0} color={euiTheme.colors.backgroundBaseDanger}>
<EuiIcon type="alert" color="danger" size="m" />
</EuiBadge>
</EuiToolTip>
);
case CLASH_ERROR_TYPE.WARNING:
return (
<EuiToolTip content={getClashText(fileClash)}>
<EuiBadge color={euiTheme.colors.backgroundBaseWarning}>
<EuiBadge tabIndex={0} color={euiTheme.colors.backgroundBaseWarning}>
<EuiIcon type="warning" color="warning" size="m" />
</EuiBadge>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const FlyoutContent: FC<FlyoutContentProps> = ({ deps, props }) => {
})}
>
<EuiBetaBadge
tabIndex={0}
label=""
iconType="beaker"
size="s"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const UpdatedAtField: FC<{ dateTime?: string; DateFormatterComp?: DateFor
defaultMessage: 'Last updated unknown',
})}
>
<span>-</span>
<span tabIndex={0}>-</span>
</EuiToolTip>
);
}
Expand All @@ -40,15 +40,15 @@ export const UpdatedAtField: FC<{ dateTime?: string; DateFormatterComp?: DateFor
<DateFormatterComp value={new Date(dateTime).getTime()}>
{(formattedDate: string) => (
<EuiToolTip content={updatedAt.format('LL LT')}>
<span>{formattedDate}</span>
<span tabIndex={0}>{formattedDate}</span>
</EuiToolTip>
)}
</DateFormatterComp>
);
}
return (
<EuiToolTip content={updatedAt.format('LL LT')}>
<span>{updatedAt.format('ll')}</span>
<span tabIndex={0}>{updatedAt.format('ll')}</span>
</EuiToolTip>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function PercentOfParent({ duration, totalDuration, parentType }: Percent
},
})}
>
<>{percentOfParentText}</>
<span tabIndex={0}>{percentOfParentText}</span>
</EuiToolTip>
) : (
percentOfParentText
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ export const List: StoryFn = () => {
icon={
<p>
<EuiToolTip position="top" content="Icon rendered with `EuiImage`">
<EuiImage size="s" hasShadow alt={id} src={getSpanIcon(type, subtype)} />
<EuiImage
size="s"
hasShadow
alt={id}
src={getSpanIcon(type, subtype)}
tabIndex={0}
/>
</EuiToolTip>
</p>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function Timestamp({
</EuiText>
) : (
<EuiToolTip content={absoluteTime} data-test-subj="apmUiSharedTimestampTooltip">
<>{relativeTime}</>
<span tabIndex={0}>{relativeTime}</span>
</EuiToolTip>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const List: StoryFn = () => {
hasShadow
alt={agentName}
src={getAgentIcon(agentName, false)}
tabIndex={0}
/>
</EuiToolTip>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const GroupStatsComponent = <T,>({
component: (
<EuiToolTip position="top" content={stat.badge.value}>
<EuiBadge
tabIndex={0}
style={{ marginLeft: 10, width: stat.badge.width ?? 35 }}
color={stat.badge.color ?? 'hollow'}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function FieldName({
)}
>
<EuiBadge
tabIndex={0}
title=""
className="kbnDocViewer__fieldName_multiFieldBadge"
color="default"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ const FieldTopValuesBucket: React.FC<FieldTopValuesBucketProps> = ({
})}
delay="long"
>
<EuiText size="xs" textAlign="left" color={getPercentageColor(euiTheme, color)}>
<EuiText
tabIndex={0}
size="xs"
textAlign="left"
color={getPercentageColor(euiTheme, color)}
>
{formattedPercentage}
</EuiText>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const getDefaultFieldTableColumns = ({ highlight }: { highlight: string }): Fiel
<EuiScreenReaderOnly data-test-subj="descriptionForScreenReaderOnly">
<p>{i18n.DESCRIPTION_FOR_FIELD(name)}</p>
</EuiScreenReaderOnly>
<span css={styles.truncatable}>
<span css={styles.truncatable} tabIndex={0}>
<span css={styles.description} data-test-subj={`field-${name}-description`}>
{`${description ?? getEmptyValue()} ${getExampleText(example)}`}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const AlertLifecycleStatusCell: CellComponent = memo((props) => {
>
<EuiBadge
iconType="bellSlash"
tabIndex={0}
css={css`
padding-inline: ${euiTheme.size.xs};
`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const LastUpdatedAt = React.memo<LastUpdatedAtProps>(
`,
}}
>
<EuiText color="subdued" size="xs" data-test-subj="toolbar-updated-at">
<EuiText color="subdued" size="xs" data-test-subj="toolbar-updated-at" tabIndex={0}>
{updateText}
</EuiText>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const MaintenanceWindowBaseCell = memo((props: MaintenanceWindowBaseCellP
key={`${mw.id}_tooltip`}
content={<TooltipContent maintenanceWindow={mw} timestamp={timestamp} />}
>
<span key={`${mw.id}_title`}>
<span key={`${mw.id}_title`} tabIndex={0}>
{mw.title}
{index !== totalLength - 1 && <>, &nbsp;</>}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ export const RuleActionsItem = (props: RuleActionsItemProps) => {
: RUN_WHEN_GROUP_TITLE(selectedActionGroup!.name.toLocaleLowerCase())
}
>
<EuiBadge iconType="clock" />
<EuiBadge tabIndex={0} iconType="clock" />
</EuiToolTip>
</EuiFlexItem>
);
Expand All @@ -635,7 +635,12 @@ export const RuleActionsItem = (props: RuleActionsItemProps) => {
return (
<EuiFlexItem grow={false}>
<EuiToolTip content={ACTION_WARNING_TITLE}>
<EuiBadge data-test-subj="warning-badge" iconType="warning" color="warning" />
<EuiBadge
tabIndex={0}
data-test-subj="warning-badge"
iconType="warning"
color="warning"
/>
</EuiToolTip>
</EuiFlexItem>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,12 @@ export const RuleActionsSystemActionsItem = (props: RuleActionsSystemActionsItem
{warning && !isOpen && (
<EuiFlexItem grow={false}>
<EuiToolTip content={ACTION_WARNING_TITLE}>
<EuiBadge data-test-subj="warning-badge" iconType="warning" color="warning" />
<EuiBadge
tabIndex={0}
data-test-subj="warning-badge"
iconType="warning"
color="warning"
/>
</EuiToolTip>
</EuiFlexItem>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const PresentationPanelTitle = ({
column-gap: ${euiTheme.size.xs};
align-items: center;
`}
tabIndex={0}
>
{!hideTitle ? (
<h2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ function RangesParamEditor({
isInvalid={!isFromValid}
prepend={
<EuiToolTip content={gteTooltipContent}>
<EuiText size="s">{gtePrependLabel}</EuiText>
<EuiText size="s" tabIndex={0}>
{gtePrependLabel}
</EuiText>
</EuiToolTip>
}
/>
Expand All @@ -217,7 +219,9 @@ function RangesParamEditor({
isInvalid={!isToValid}
prepend={
<EuiToolTip content={ltTooltipContent}>
<EuiText size="s">{ltPrependLabel}</EuiText>
<EuiText size="s" tabIndex={0}>
{ltPrependLabel}
</EuiText>
</EuiToolTip>
}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const NetworkRequestStatusBar: FunctionComponent<Props> = ({
<EuiBadge
data-test-subj="consoleResponseStatusBadge"
color={mapStatusCodeToBadgeColor(statusCode)}
tabIndex={0}
>
{/* Use &nbsp; to ensure that no matter the width we don't allow line breaks */}
{statusCode}&nbsp;-&nbsp;{statusText}
Expand All @@ -102,7 +103,7 @@ export const NetworkRequestStatusBar: FunctionComponent<Props> = ({
</EuiText>
}
>
<EuiText size="s">
<EuiText size="s" tabIndex={0}>
<EuiBadge color="default">
{timeElapsedMs}&nbsp;{'ms'}
</EuiBadge>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const OptionsListPopoverSuggestionBadge = ({ documentCount }: { documentC
position={'right'}
>
<EuiText
tabIndex={0}
size="xs"
aria-hidden={true}
className="eui-textNumber"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const getColumns = ({

return (
<EuiToolTip content={toolTipContent}>
<EuiBadge color="warning" data-test-subj="sessionManagementStatusCol">
<EuiBadge tabIndex={0} color="warning" data-test-subj="sessionManagementStatusCol">
{statusContent}
</EuiBadge>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export const renderFieldName = (field: IndexedFieldItem, timeFieldName?: string)
{field.customLabel && field.customLabel !== field.name ? (
<div>
<EuiToolTip content={labelDescription}>
<EuiBadge iconType="flag" iconSide="left">
<EuiBadge iconType="flag" iconSide="left" tabIndex={0}>
{field.customLabel}
</EuiBadge>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function DevToolsWrapper({
}}
>
<EuiToolTip content={currentDevTool.tooltipContent}>
<span>
<span tabIndex={0}>
{currentDevTool.title}{' '}
{currentDevTool.isBeta && (
<EuiBetaBadge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export function VariableName({
data-test-subj="esqlVariableName"
fullWidth
compressed
tabIndex={0}
/>
</EuiToolTip>
</EuiFormRow>
Expand Down Expand Up @@ -353,6 +354,7 @@ export function Header({
label=""
iconType="beaker"
size="s"
tabIndex={0}
css={css`
vertical-align: middle;
`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export class RequestSelector extends Component<RequestSelectorProps> {
>
<EuiBadge
data-test-subj="inspectorRequestTotalTime"
tabIndex={0}
color={selectedRequest.status === RequestStatus.OK ? 'success' : 'danger'}
iconType={selectedRequest.status === RequestStatus.OK ? 'check' : 'cross'}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class Table extends PureComponent<TableProps, TableState> {
}
)}
>
<span>-</span>
<span tabIndex={0}>-</span>
</EuiToolTip>
);
}
Expand All @@ -158,15 +158,15 @@ export class Table extends PureComponent<TableProps, TableState> {
if (updatedAt.diff(moment(), 'days') > -7) {
return (
<EuiToolTip content={updatedAt.format('LL LT')}>
<span>
<span tabIndex={0}>
<FormattedRelative value={new Date(dateTime).getTime()} />
</span>
</EuiToolTip>
);
}
return (
<EuiToolTip content={updatedAt.format('LL LT')}>
<span>{updatedAt.format('LL')}</span>
<span tabIndex={0}>{updatedAt.format('LL')}</span>
</EuiToolTip>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export const FilterView: FC<Props> = ({

return readOnly ? (
<EuiToolTip position="bottom" content={title}>
<span ref={ref}>
<span ref={ref} tabIndex={0}>
<FilterPill />
</span>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export function WorkflowsEmptyState({
}
>
<EuiBetaBadge
tabIndex={0}
label={
<FormattedMessage
id="workflows.emptyState.technicalPreviewBadge"
Expand Down
4 changes: 2 additions & 2 deletions x-pack/examples/testing_embedded_lens/public/controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function OverrideSwitch({
content={<CodeExample propName="overrides" code={JSON.stringify(override, null, 2)} />}
position="right"
>
<span>
<span tabIndex={0}>
{rowLabel} <EuiIcon type="question" color="subdued" />
</span>
</EuiToolTip>
Expand Down Expand Up @@ -584,7 +584,7 @@ export function PanelMenu({
}
position="right"
>
<span>
<span tabIndex={0}>
Show custom action <EuiIcon type="question" color="subdued" />
</span>
</EuiToolTip>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export const BrushBadge: FC<BrushBadgeProps> = ({
}
position="top"
>
<EuiBadge css={{ width, textAlign: 'center' }}>{label}</EuiBadge>
<EuiBadge tabIndex={0} css={{ width, textAlign: 'center' }}>
{label}
</EuiBadge>
</EuiToolTip>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const getOptionFromPrompt = ({

{/* Empty content tooltip gets around :hover styles from SuperSelectOptionButton */}
<EuiToolTip content={undefined}>
<EuiText color="subdued" data-test-subj="content" size="s">
<EuiText tabIndex={0} color="subdued" data-test-subj="content" size="s">
{isEmpty(content) ? <p>{EMPTY_PROMPT}</p> : <p>{content}</p>}
</EuiText>
</EuiToolTip>
Expand Down
Loading
Loading