From ada04f64a529feab43f5b54162daffe9d3313435 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 18 Feb 2025 11:15:23 +0100 Subject: [PATCH] fix(CommandPalette): wrong ellipsis color --- src/theme/command-palette.ts | 2 +- .../CommandPalette-vue.spec.ts.snap | 318 +++++++++--------- .../__snapshots__/CommandPalette.spec.ts.snap | 318 +++++++++--------- 3 files changed, 319 insertions(+), 319 deletions(-) diff --git a/src/theme/command-palette.ts b/src/theme/command-palette.ts index 00415846..44152e66 100644 --- a/src/theme/command-palette.ts +++ b/src/theme/command-palette.ts @@ -21,7 +21,7 @@ export default (options: Required) => ({ itemTrailingHighlightedIcon: 'shrink-0 size-5 text-(--ui-text-dimmed) hidden group-data-highlighted:inline-flex', itemTrailingKbds: 'hidden lg:inline-flex items-center shrink-0 gap-0.5', itemTrailingKbdsSize: 'md', - itemLabel: 'truncate space-x-1 rtl:space-x-reverse', + itemLabel: 'truncate space-x-1 rtl:space-x-reverse text-(--ui-text-dimmed)', itemLabelBase: 'text-(--ui-text-highlighted) [&>mark]:text-(--ui-bg) [&>mark]:bg-(--ui-primary)', itemLabelPrefix: 'text-(--ui-text)', itemLabelSuffix: 'text-(--ui-text-dimmed) [&>mark]:text-(--ui-bg) [&>mark]:bg-(--ui-primary)' diff --git a/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap b/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap index 56b477e4..48fb7b3c 100644 --- a/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap +++ b/test/components/__snapshots__/CommandPalette-vue.spec.ts.snap @@ -8,27 +8,27 @@ exports[`CommandPalette > renders with as correctly 1`] = `
-
Labels
@@ -44,27 +44,27 @@ exports[`CommandPalette > renders with class correctly 1`] = `
-
Labels
@@ -78,27 +78,27 @@ exports[`CommandPalette > renders with close correctly 1`] = `
-
Labels
@@ -112,27 +112,27 @@ exports[`CommandPalette > renders with close slot correctly 1`] = `
-
Labels
@@ -146,27 +146,27 @@ exports[`CommandPalette > renders with closeIcon correctly 1`] = `
-
Labels
@@ -182,25 +182,25 @@ exports[`CommandPalette > renders with custom slot correctly 1`] = `
-
Labels
@@ -216,27 +216,27 @@ exports[`CommandPalette > renders with defaultValue correctly 1`] = `
-
Labels
@@ -252,27 +252,27 @@ exports[`CommandPalette > renders with disabled correctly 1`] = `
-
Labels
@@ -288,27 +288,27 @@ exports[`CommandPalette > renders with empty slot correctly 1`] = `
-
Labels
@@ -324,27 +324,27 @@ exports[`CommandPalette > renders with groups correctly 1`] = `
-
Labels
@@ -360,27 +360,27 @@ exports[`CommandPalette > renders with icon correctly 1`] = `
-
Labels
@@ -396,7 +396,7 @@ exports[`CommandPalette > renders with item slot correctly 1`] = `
-
@@ -420,27 +420,27 @@ exports[`CommandPalette > renders with item-label slot correctly 1`] = `
-
Labels
@@ -456,21 +456,21 @@ exports[`CommandPalette > renders with item-leading slot correctly 1`] = `
-
-
Labels
+
Labels
@@ -486,21 +486,21 @@ exports[`CommandPalette > renders with item-trailing slot correctly 1`] = `
-
Labels
@@ -516,13 +516,13 @@ exports[`CommandPalette > renders with labelKey correctly 1`] = `
-
@@ -557,27 +557,27 @@ exports[`CommandPalette > renders with loading correctly 1`] = `
-
Labels
@@ -593,27 +593,27 @@ exports[`CommandPalette > renders with loadingIcon correctly 1`] = `
-
Labels
@@ -629,27 +629,27 @@ exports[`CommandPalette > renders with modelValue correctly 1`] = `
-
Labels
@@ -665,27 +665,27 @@ exports[`CommandPalette > renders with placeholder correctly 1`] = `
-
Labels
@@ -701,27 +701,27 @@ exports[`CommandPalette > renders with selectedIcon correctly 1`] = `
-
Labels
@@ -737,27 +737,27 @@ exports[`CommandPalette > renders with ui correctly 1`] = `
-
Labels
diff --git a/test/components/__snapshots__/CommandPalette.spec.ts.snap b/test/components/__snapshots__/CommandPalette.spec.ts.snap index d1b2bcac..3b5cfc0c 100644 --- a/test/components/__snapshots__/CommandPalette.spec.ts.snap +++ b/test/components/__snapshots__/CommandPalette.spec.ts.snap @@ -8,27 +8,27 @@ exports[`CommandPalette > renders with as correctly 1`] = `
-
Labels
@@ -44,27 +44,27 @@ exports[`CommandPalette > renders with class correctly 1`] = `
-
Labels
@@ -81,27 +81,27 @@ exports[`CommandPalette > renders with close correctly 1`] = `
-
Labels
@@ -115,27 +115,27 @@ exports[`CommandPalette > renders with close slot correctly 1`] = `
-
Labels
@@ -152,27 +152,27 @@ exports[`CommandPalette > renders with closeIcon correctly 1`] = `
-
Labels
@@ -188,25 +188,25 @@ exports[`CommandPalette > renders with custom slot correctly 1`] = `
-
Labels
@@ -222,27 +222,27 @@ exports[`CommandPalette > renders with defaultValue correctly 1`] = `
-
Labels
@@ -258,27 +258,27 @@ exports[`CommandPalette > renders with disabled correctly 1`] = `
-
Labels
@@ -294,27 +294,27 @@ exports[`CommandPalette > renders with empty slot correctly 1`] = `
-
Labels
@@ -330,27 +330,27 @@ exports[`CommandPalette > renders with groups correctly 1`] = `
-
Labels
@@ -366,27 +366,27 @@ exports[`CommandPalette > renders with icon correctly 1`] = `
-
Labels
@@ -402,7 +402,7 @@ exports[`CommandPalette > renders with item slot correctly 1`] = `
-
@@ -426,27 +426,27 @@ exports[`CommandPalette > renders with item-label slot correctly 1`] = `
-
Labels
@@ -462,21 +462,21 @@ exports[`CommandPalette > renders with item-leading slot correctly 1`] = `
-
-
Labels
+
Labels
@@ -492,21 +492,21 @@ exports[`CommandPalette > renders with item-trailing slot correctly 1`] = `
-
Labels
@@ -522,13 +522,13 @@ exports[`CommandPalette > renders with labelKey correctly 1`] = `
-
@@ -563,27 +563,27 @@ exports[`CommandPalette > renders with loading correctly 1`] = `
-
Labels
@@ -599,27 +599,27 @@ exports[`CommandPalette > renders with loadingIcon correctly 1`] = `
-
Labels
@@ -635,27 +635,27 @@ exports[`CommandPalette > renders with modelValue correctly 1`] = `
-
Labels
@@ -671,27 +671,27 @@ exports[`CommandPalette > renders with placeholder correctly 1`] = `
-
Labels
@@ -707,27 +707,27 @@ exports[`CommandPalette > renders with selectedIcon correctly 1`] = `
-
Labels
@@ -743,27 +743,27 @@ exports[`CommandPalette > renders with ui correctly 1`] = `
-
Labels