From 23212053bdbf64bbac3d7557ddcb1397b5784629 Mon Sep 17 00:00:00 2001 From: Taylor Seamans Date: Tue, 4 Feb 2025 11:21:33 -0800 Subject: [PATCH] Fix incorrect fontWeight nesting in v1 file (#4761) * Fix incorrect fontWeight nesting in v1 file * Structure fixes for switch --- .../tokens/component/component.v1.json | 98 ++++++++++++------- 1 file changed, 62 insertions(+), 36 deletions(-) diff --git a/design-tokens/tokens/component/component.v1.json b/design-tokens/tokens/component/component.v1.json index 8400c0f1e..4fa3bfd20 100644 --- a/design-tokens/tokens/component/component.v1.json +++ b/design-tokens/tokens/component/component.v1.json @@ -6899,17 +6899,17 @@ "codeSyntax": {} } } - } - }, - "fontWeight": { - "$type": "number", - "$value": "{checkbox.default.label.rest.fontWeight}", - "$description": "", - "$extensions": { - "com.figma": { - "hiddenFromPublishing": false, - "scopes": ["FONT_STYLE"], - "codeSyntax": {} + }, + "fontWeight": { + "$type": "number", + "$value": "{checkbox.default.label.rest.fontWeight}", + "$description": "", + "$extensions": { + "com.figma": { + "hiddenFromPublishing": false, + "scopes": ["FONT_STYLE"], + "codeSyntax": {} + } } } } @@ -7463,17 +7463,17 @@ "codeSyntax": {} } } - } - }, - "fontWeight": { - "$type": "number", - "$value": "{switch.default.label.rest.fontWeight}", - "$description": "", - "$extensions": { - "com.figma": { - "hiddenFromPublishing": false, - "scopes": ["FONT_STYLE"], - "codeSyntax": {} + }, + "fontWeight": { + "$type": "number", + "$value": "{switch.default.label.rest.fontWeight}", + "$description": "", + "$extensions": { + "com.figma": { + "hiddenFromPublishing": false, + "scopes": ["FONT_STYLE"], + "codeSyntax": {} + } } } } @@ -7491,17 +7491,43 @@ "codeSyntax": {} } } + }, + "fontWeight": { + "$type": "number", + "$value": "{switch.default.label.rest.fontWeight}", + "$description": "", + "$extensions": { + "com.figma": { + "hiddenFromPublishing": false, + "scopes": ["FONT_STYLE"], + "codeSyntax": {} + } + } } }, - "fontWeight": { - "$type": "number", - "$value": "{switch.default.label.rest.fontWeight}", - "$description": "", - "$extensions": { - "com.figma": { - "hiddenFromPublishing": false, - "scopes": ["FONT_STYLE"], - "codeSyntax": {} + "hover": { + "textColor": { + "$type": "color", + "$value": "{switch.default.label.rest.textColor}", + "$description": "", + "$extensions": { + "com.figma": { + "hiddenFromPublishing": false, + "scopes": ["TEXT_FILL"], + "codeSyntax": {} + } + } + }, + "fontWeight": { + "$type": "number", + "$value": "{switch.default.label.rest.fontWeight}", + "$description": "", + "$extensions": { + "com.figma": { + "hiddenFromPublishing": false, + "scopes": ["FONT_STYLE"], + "codeSyntax": {} + } } } } @@ -10725,7 +10751,7 @@ }, "fontWeight": { "$type": "number", - "$value": "{fontWeight.medium}", + "$value": "{fontWeight.regular}", "$description": "", "$extensions": { "com.figma": { @@ -10751,7 +10777,7 @@ }, "fontWeight": { "$type": "number", - "$value": "{radiobutton.default.label.rest.fontWeight}", + "$value": "{radioButton.default.label.rest.fontWeight}", "$description": "", "$extensions": { "com.figma": { @@ -10778,7 +10804,7 @@ }, "fontWeight": { "$type": "number", - "$value": "{radiobutton.default.label.rest.fontWeight}", + "$value": "{radioButton.default.label.rest.fontWeight}", "$description": "", "$extensions": { "com.figma": { @@ -10806,7 +10832,7 @@ }, "fontWeight": { "$type": "number", - "$value": "{radiobutton.default.label.rest.fontWeight}", + "$value": "{radioButton.default.label.rest.fontWeight}", "$description": "", "$extensions": { "com.figma": { @@ -10832,7 +10858,7 @@ }, "fontWeight": { "$type": "number", - "$value": "{radiobutton.default.label.rest.fontWeight}", + "$value": "{radioButton.default.label.rest.fontWeight}", "$description": "", "$extensions": { "com.figma": {