mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-14 11:30:11 -05:00
feat: a couple small improvements
This commit is contained in:
@@ -115,7 +115,16 @@ export const ThemeStyling = ({
|
||||
|
||||
// Headlines & Descriptions (Using Brand/Accent)
|
||||
form.setValue("elementHeadlineColor.light", derivedAccentText, { shouldDirty: true });
|
||||
form.setValue("elementDescriptionColor.light", derivedAccentText, { shouldDirty: true });
|
||||
form.setValue(
|
||||
"elementDescriptionColor.light",
|
||||
mixColor(derivedAccentText, "#ffffff", 0.3) ?? derivedAccentText,
|
||||
{ shouldDirty: true }
|
||||
);
|
||||
form.setValue(
|
||||
"elementUpperLabelColor.light",
|
||||
mixColor(derivedAccentText, "#ffffff", 0.5) ?? derivedAccentText,
|
||||
{ shouldDirty: true }
|
||||
);
|
||||
|
||||
// 2. Buttons
|
||||
form.setValue("buttonBgColor.light", brandColor, { shouldDirty: true });
|
||||
|
||||
@@ -399,7 +399,7 @@ describe("addCustomThemeToDom", () => {
|
||||
expect(variables["--fb-button-padding-x"]).toBe("20px");
|
||||
expect(variables["--fb-button-padding-y"]).toBe("10px");
|
||||
// Inputs
|
||||
expect(variables["--fb-input-color"]).toBe("#input-text");
|
||||
expect(variables["--fb-input-text-color"]).toBe("#input-text");
|
||||
expect(variables["--fb-input-border-radius"]).toBe("4px");
|
||||
expect(variables["--fb-input-height"]).toBe("40px");
|
||||
expect(variables["--fb-input-font-size"]).toBe("14px");
|
||||
|
||||
Reference in New Issue
Block a user