Align custom policy details with the Figma create modal so the add-field control, copy, and labels match the intended styling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilallo
2026-08-25 09:49:10 -06:00
co-authored by Cursor
parent 963fa03c5c
commit 712437edc7
13 changed files with 88 additions and 60 deletions
@@ -388,6 +388,7 @@ const CustomMethodCardWizardContainer = memo<CustomMethodCardWizardProps>(
const handleSelectFieldType = useCallback((ft: AddCustomFieldType) => {
setEditingBlockId(null);
setAddFieldExpanded(false);
resetFieldTypeDrafts();
setFieldTypeModal(ft);
fieldModalSnapshotRef.current = JSON.stringify({
@@ -531,6 +532,7 @@ const CustomMethodCardWizardContainer = memo<CustomMethodCardWizardProps>(
});
setFieldTypeModal(null);
setEditingBlockId(null);
setAddFieldExpanded(false);
fieldModalSnapshotRef.current = null;
}, [
badgeBlockTitle,
@@ -90,7 +90,7 @@ function CustomMethodCardWizardViewComponent({
/>
) : null}
{!fieldTypeModal && wizardStep === 3 ? (
<div className="flex w-full flex-col gap-4 pt-1">
<div className="flex w-full flex-col gap-6">
{draftFieldBlocks.length > 0 ? (
<CustomMethodCardWizardBlocksList
blocks={draftFieldBlocks}
@@ -43,7 +43,7 @@ function CustomMethodCardWizardBlocksListViewComponent({
}: CustomMethodCardWizardBlocksListViewProps) {
return (
<ul
className="flex list-none flex-col gap-2 p-0 pt-1"
className="flex list-none flex-col gap-2 p-0"
aria-label={listLabel}
>
{blocks.map((block, index) => {
@@ -53,11 +53,9 @@ function CustomMethodCardWizardFieldBodiesViewComponent({
maxLength={CUSTOM_METHOD_CARD_WIZARD_MAX_FIELD_CHARS}
/>
<div className="flex flex-col gap-2">
<InputLabel
label={copy.text.placeholderLabel}
size="s"
palette="default"
/>
<label className="text-[14px] leading-[20px] font-medium text-[var(--color-content-default-primary)]">
{copy.text.placeholderLabel}
</label>
<TextArea
formHeader={false}
appearance="embedded"