diff --git a/src/components/calcite-combobox/calcite-combobox.scss b/src/components/calcite-combobox/calcite-combobox.scss index efda8e367d6..bad262480b6 100644 --- a/src/components/calcite-combobox/calcite-combobox.scss +++ b/src/components/calcite-combobox/calcite-combobox.scss @@ -55,8 +55,12 @@ } .grid-input { - @apply flex flex-grow flex-wrap items-center; - padding: 0; + @apply flex + flex-grow + flex-wrap + items-center + p-0 + truncate; } .input { diff --git a/src/components/calcite-combobox/calcite-combobox.stories.ts b/src/components/calcite-combobox/calcite-combobox.stories.ts index 567f395bb9c..7130b3edd20 100644 --- a/src/components/calcite-combobox/calcite-combobox.stories.ts +++ b/src/components/calcite-combobox/calcite-combobox.stories.ts @@ -94,6 +94,11 @@ export const Multiple = (): string => html` + `; diff --git a/src/demos/calcite-combobox.html b/src/demos/calcite-combobox.html index 0eb96290ae3..60aae58a074 100644 --- a/src/demos/calcite-combobox.html +++ b/src/demos/calcite-combobox.html @@ -612,5 +612,62 @@

Combobox

+ +
+ +
+

With truncated text effect in smaller fixed-width container

+
+
+

Multi

+ + + + + + + +
+
+ +
+
+

Ancestors

+ + + + + + + +
+
+ +
+
+

Single

+ + + + + + + + +
+
+