Open create-flow method modals with editable fields and tertiary default copy.

Seeded section text should look like the form default state, not locked primary, and Customize stays on the kebab instead of unlocking the body.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilalloandCursor committed 2026-08-28 12:59:53 -06:00
1 parent 744a85a44e
commit a820739d07
13 files changed
+153 -11

No files matched your search

+13
View File
@@ -42,4 +42,17 @@ describe("TextArea appearance", () => {
expect(textarea).toBeInTheDocument();
expect(textarea).toHaveClass("border-0");
});
it("uses tertiary text in the embedded default state and primary on focus", () => {
renderWithProviders(
<TextArea label="Notes" value="Some text" appearance="embedded" />,
);
const textarea = screen.getByRole("textbox", { name: /notes/i });
expect(textarea).toHaveClass(
"text-[var(--color-content-default-tertiary,#b4b4b4)]",
);
expect(textarea).toHaveClass(
"focus:text-[var(--color-content-default-primary)]",
);
});
});