fix: Can't switch back to System Default (#30867)

Fixes #30715

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Added "System Default" as a font option in the theme property pane for
more customization.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Pawan Kumar 2024-02-02 17:23:45 +05:30 committed by GitHub
parent 515e28a6f1
commit e9f2cfd6e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(