Skip to content

Commit edbe5c1

Browse files
Copilotdej611
authored andcommitted
Add aria-label to Auto-included badge for screen reader announcement (elastic#271083)
1 parent 9912414 commit edbe5c1

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

  • x-pack/platform/plugins/shared/agent_builder/public/application/components/agents/common

x-pack/platform/plugins/shared/agent_builder/public/application/components/agents/common/library_toggle_row.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,15 @@ export const LibraryToggleRow: React.FC<LibraryToggleRowProps> = ({
104104
) : undefined
105105
}
106106
>
107-
<EuiBadge tabIndex={0} color="hollow">
107+
<EuiBadge
108+
tabIndex={0}
109+
color="hollow"
110+
aria-label={
111+
[disabledBadgeLabel, disabledTooltipTitle, disabledTooltipBody]
112+
.filter(Boolean)
113+
.join('. ') || undefined
114+
}
115+
>
108116
{disabledBadgeLabel ?? 'Auto-included'}
109117
</EuiBadge>
110118
</EuiToolTip>

0 commit comments

Comments
 (0)