리스트/에디터 스타일 정리 및 버그 수정
This commit is contained in:
@@ -221,6 +221,11 @@ describe("formHelpers - editor tokens", () => {
|
||||
widthMode: "fixed",
|
||||
widthPx: 260,
|
||||
borderRadius: "lg",
|
||||
paddingX: 12,
|
||||
paddingY: 6,
|
||||
fontSizeCustom: "14px",
|
||||
lineHeightCustom: "20px",
|
||||
letterSpacingCustom: "1px",
|
||||
} as any);
|
||||
|
||||
expect(tokens.fieldStyle.color).toBe("#ff0000");
|
||||
@@ -228,6 +233,11 @@ describe("formHelpers - editor tokens", () => {
|
||||
expect(tokens.fieldStyle.borderColor).toBe("#654321");
|
||||
expect(tokens.fieldStyle.width).toBe("260px");
|
||||
expect(tokens.fieldStyle.borderRadius).toBe(9999);
|
||||
expect(tokens.fieldStyle.paddingInline).toBe("12px");
|
||||
expect(tokens.fieldStyle.paddingBlock).toBe("6px");
|
||||
expect(tokens.fieldStyle.fontSize).toBe("14px");
|
||||
expect(tokens.fieldStyle.lineHeight).toBe("20px");
|
||||
expect(tokens.fieldStyle.letterSpacing).toBe("1px");
|
||||
});
|
||||
|
||||
it("computeFormOptionGroupEditorTokens: 에디터 라디오/체크박스 그룹 필드 스타일을 계산해야 한다", () => {
|
||||
@@ -239,6 +249,11 @@ describe("formHelpers - editor tokens", () => {
|
||||
widthMode: "fixed",
|
||||
widthPx: 280,
|
||||
borderRadius: "lg",
|
||||
paddingX: 8,
|
||||
paddingY: 4,
|
||||
fontSizeCustom: "15px",
|
||||
lineHeightCustom: "22px",
|
||||
letterSpacingCustom: "0.5px",
|
||||
} as any);
|
||||
|
||||
expect(tokens.fieldStyle.color).toBe("#ff0000");
|
||||
@@ -246,6 +261,11 @@ describe("formHelpers - editor tokens", () => {
|
||||
expect(tokens.fieldStyle.borderColor).toBe("#654321");
|
||||
expect(tokens.fieldStyle.width).toBe("280px");
|
||||
expect(tokens.fieldStyle.borderRadius).toBe(9999);
|
||||
expect(tokens.fieldStyle.paddingInline).toBe("8px");
|
||||
expect(tokens.fieldStyle.paddingBlock).toBe("4px");
|
||||
expect(tokens.fieldStyle.fontSize).toBe("15px");
|
||||
expect(tokens.fieldStyle.lineHeight).toBe("22px");
|
||||
expect(tokens.fieldStyle.letterSpacing).toBe("0.5px");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user