Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Search] Fix button without a11y aria-label #201236

Merged
merged 5 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -85,6 +85,9 @@ export const ResultField: React.FC<ResultFieldProps> = ({
<EuiPopover
button={
<EuiButtonIcon
aria-label={i18n.translate('searchIndexDocuments.result.fieldTypeAriaLabel', {
defaultMessage: "Show this field's type",
})}
onClick={() => setIsPopoverOpen(!isPopoverOpen)}
iconType={iconType || (fieldType ? iconMap[fieldType] : defaultToken)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const QuickStats: React.FC<QuickStatsProps> = ({ index, mappings, indexDo
const mappingStats = useMemo(() => countVectorBasedTypesFromMappings(mappings), [mappings]);
const vectorFieldCount =
mappingStats.sparse_vector + mappingStats.dense_vector + mappingStats.semantic_text;
const docCount = indexDocuments?.results._meta.page.total ?? 0;
sphilipse marked this conversation as resolved.
Show resolved Hide resolved
const docCount = index.documents ?? 0;

return (
<EuiPanel
Expand Down