From e9f2cfd6e59b7e19a7f6ebc1955b0b415b25262b Mon Sep 17 00:00:00 2001 From: Pawan Kumar Date: Fri, 2 Feb 2024 17:23:45 +0530 Subject: [PATCH] fix: Can't switch back to System Default (#30867) Fixes #30715 ## Summary by CodeRabbit - **New Features** - Added "System Default" as a font option in the theme property pane for more customization. --- app/client/src/pages/Editor/WDSThemePropertyPane/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/client/src/pages/Editor/WDSThemePropertyPane/index.tsx b/app/client/src/pages/Editor/WDSThemePropertyPane/index.tsx index 0871131df3..c7bbf2cf85 100644 --- a/app/client/src/pages/Editor/WDSThemePropertyPane/index.tsx +++ b/app/client/src/pages/Editor/WDSThemePropertyPane/index.tsx @@ -128,7 +128,10 @@ function WDSThemePropertyPane() { }} value={theme.fontFamily} > - {Object.keys(FONT_METRICS) + {Object.keys({ + "System Default": "System Default", + ...FONT_METRICS, + }) .filter((item) => { return ( ["-apple-system", "BlinkMacSystemFont", "Segoe UI"].includes(