Skip to content

Commit c1a5570

Browse files
committed
fix(web): preserve composer menu theme colors
1 parent 0ab9458 commit c1a5570

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

‎apps/web/src/components/chat/ComposerCommandMenu.test.tsx‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ describe("ComposerCommandMenu", () => {
8888
expect(markup).toContain(">App Skill</span>");
8989
expect(markup).toContain("Open and control the in-app browser");
9090
expect(markup).toContain("max-w-[48ch]");
91-
expect(markup).toContain("text-muted-foreground! text-xs opacity-60");
91+
expect(markup).toContain("text-secondary-label text-xs");
9292
expect(markup).toContain("ms-auto");
93-
expect(markup).toContain('data-icon="inline-start"');
93+
expect(markup).toContain("text-current");
9494
expect(markup.indexOf("Open and control the in-app browser")).toBeLessThan(
9595
markup.indexOf(">App Skill</span>"),
9696
);
@@ -126,14 +126,11 @@ describe("ComposerCommandMenu", () => {
126126
/>,
127127
);
128128

129-
expect(markup).toContain(
130-
'/<span class="text-muted-foreground! opacity-60">skill:</span>Ask Matt',
131-
);
129+
expect(markup).toContain('/<span class="text-secondary-label">skill:</span>Ask Matt');
132130
expect(markup).toContain('data-slot="badge"');
133131
expect(markup).toContain("lucide-folder");
134132
expect(markup).toContain(">Repo</span>");
135133
expect(markup).toContain("Find the right skill or workflow");
136134
expect(markup).not.toContain("font-medium text-secondary-label");
137-
expect(markup).toContain('data-icon="inline-start"');
138135
});
139136
});

‎apps/web/src/components/chat/ComposerCommandMenu.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ const ComposerCommandMenuItem = memo(function ComposerCommandMenuItem(props: {
172172
<span className="min-w-0 max-w-[45%] shrink-0 truncate font-sans text-xs font-medium">
173173
{isSlashSkill ? (
174174
<>
175-
/<span className="text-muted-foreground! opacity-60">skill:</span>
175+
/<span className="text-secondary-label">skill:</span>
176176
{formatProviderSkillDisplayName(isSlashSkill)}
177177
</>
178178
) : (
179179
props.item.label
180180
)}
181181
</span>
182-
<span className="min-w-0 max-w-[48ch] flex-1 truncate text-left text-muted-foreground! text-xs opacity-60">
182+
<span className="min-w-0 max-w-[48ch] flex-1 truncate text-left text-secondary-label text-xs">
183183
{props.item.description}
184184
</span>
185185
{skillSourceKind ? (
@@ -215,7 +215,7 @@ function SkillSourceBadge(props: { kind: ProviderSkillSourceKind; showSkillSuffi
215215
const Icon = SKILL_SOURCE_ICON_BY_KIND[props.kind];
216216
return (
217217
<Badge className="ms-auto" variant="secondary">
218-
<Icon aria-hidden="true" data-icon="inline-start" />
218+
<Icon aria-hidden="true" className="text-current" />
219219
{SKILL_SOURCE_LABEL_BY_KIND[props.kind]}
220220
{props.showSkillSuffix ? " Skill" : null}
221221
</Badge>

0 commit comments

Comments
 (0)