Hello world
diff --git a/src/components/text_truncate/text_truncate.styles.ts b/src/components/text_truncate/text_truncate.styles.ts
index c79482aa0f2..9f7ea790b4f 100644
--- a/src/components/text_truncate/text_truncate.styles.ts
+++ b/src/components/text_truncate/text_truncate.styles.ts
@@ -25,13 +25,13 @@ export const euiTextTruncateStyles = {
* and there'll be no need for the entire component at that point 🙏
*/
// Makes the truncated text unselectable/un-clickable
- truncatedText: css`
+ euiTextTruncate__truncatedText: css`
user-select: none;
pointer-events: none;
`,
// Positions the full text on top of the truncated text (so that clicking targets it)
// and gives it a color opacity of 0 so that it's not actually visible
- fullText: css`
+ euiTextTruncate__fullText: css`
position: absolute;
inset: 0;
overflow: hidden;
diff --git a/src/components/text_truncate/text_truncate.tsx b/src/components/text_truncate/text_truncate.tsx
index f0a0df6e685..bcae09e1119 100644
--- a/src/components/text_truncate/text_truncate.tsx
+++ b/src/components/text_truncate/text_truncate.tsx
@@ -15,6 +15,7 @@ import React, {
useMemo,
useCallback,
} from 'react';
+import classNames from 'classnames';
import { useCombinedRefs } from '../../services';
import {
@@ -24,7 +25,7 @@ import {
import type { CommonProps } from '../common';
import { TruncationUtilsWithDOM, TruncationUtilsWithCanvas } from './utils';
-import { euiTextTruncateStyles } from './text_truncate.styles';
+import { euiTextTruncateStyles as styles } from './text_truncate.styles';
const TRUNCATION_TYPES = ['end', 'start', 'startEnd', 'middle'] as const;
export type EuiTextTruncationTypes = (typeof TRUNCATION_TYPES)[number];
@@ -129,6 +130,7 @@ const EuiTextTruncateWithWidth: FunctionComponent<
ellipsis = '…',
containerRef,
measurementRenderAPI = 'dom',
+ className,
...rest
}) => {
// Note: This needs to be a state and not a ref to trigger a rerender on mount
@@ -214,7 +216,8 @@ const EuiTextTruncateWithWidth: FunctionComponent<
return (
{children ? children(truncatedText) : truncatedText}
-
+
{text}
>
) : (
- {text}
+
+ {children ? children(text) : text}
+
)}
);
diff --git a/upcoming_changelogs/7212.md b/upcoming_changelogs/7212.md
new file mode 100644
index 00000000000..ff31a846856
--- /dev/null
+++ b/upcoming_changelogs/7212.md
@@ -0,0 +1,5 @@
+**Bug fixes**
+
+- Fixed missing `className`s on `EuiTextTruncate`
+- Fixed `title`s on `EuiComboBox` dropdown options to always be present
+- Fixed `EuiComboBox` truncation issues when search is an empty space