Skip to content

Commit

Permalink
[Discover] Rename to isHighlighted
Browse files Browse the repository at this point in the history
  • Loading branch information
jughosta committed Sep 19, 2024
1 parent 3ca7127 commit b20c54e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const TableCell: React.FC<TableCellProps> = React.memo(
rawValue={flattenedValue}
ignoreReason={ignoredReason}
isDetails={isDetails}
isHighLighted={Boolean(
isHighlighted={Boolean(
searchTermMatch && [TermMatch.value, TermMatch.both].includes(searchTermMatch)
)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type TableFieldValueProps = Pick<FieldRecordLegacy['field'], 'field'> & {
ignoreReason?: IgnoredReason;
isDetails?: boolean; // true when inside EuiDataGrid cell popover
isLegacy?: boolean; // true when inside legacy table
isHighLighted?: boolean; // whether it's matching a search term
isHighlighted?: boolean; // whether it's matching a search term
};

export const TableFieldValue = ({
Expand All @@ -112,7 +112,7 @@ export const TableFieldValue = ({
ignoreReason,
isDetails,
isLegacy,
isHighLighted,
isHighlighted,
}: TableFieldValueProps) => {
const { euiTheme } = useEuiTheme();
const { uiSettings } = getUnifiedDocViewerServices();
Expand Down Expand Up @@ -160,7 +160,7 @@ export const TableFieldValue = ({

const valueClasses = classnames('kbnDocViewer__value', {
'kbnDocViewer__value--truncated': shouldTruncate,
'kbnDocViewer__value--highlighted': isHighLighted && !isDetails,
'kbnDocViewer__value--highlighted': isHighlighted && !isDetails,
});

return (
Expand Down

0 comments on commit b20c54e

Please sign in to comment.