Skip to content

Commit

Permalink
Change default of update styles to false, update copy (#3185)
Browse files Browse the repository at this point in the history
change default of update styles to false, update copy
  • Loading branch information
six7 authored Oct 22, 2024
1 parent da1886d commit b732147
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/tokens-studio-for-figma/src/i18n/lang/en/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
"description": "Swap themes by just changing styles, requires Themes"
},
"shouldUpdateStyles": {
"title": "Update styles",
"description": "Update styles when tokens or themes change"
"title": "Update Figma Styles on apply",
"description": "Updates local Figma Styles when themes change or whenever applied"
}
},
"tools": "Tools",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('uiSettings', () => {
updateRemote: true,
updateOnChange: true,
applyVariablesStylesOrRawValue: ApplyVariablesStylesOrRawValues.VARIABLES_STYLES,
shouldUpdateStyles: true,
shouldUpdateStyles: false,
variablesColor: true,
variablesNumber: true,
variablesString: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens-studio-for-figma/src/utils/uiSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export async function getUISettings(notify = true): Promise<SavedSettings> {
updateRemote = typeof data.updateRemote === 'undefined' ? true : data.updateRemote;
updateOnChange = typeof data.updateOnChange === 'undefined' ? true : data.updateOnChange;
applyVariablesStylesOrRawValue = typeof data.applyVariablesStylesOrRawValue === 'undefined' ? ApplyVariablesStylesOrRawValues.VARIABLES_STYLES : data.applyVariablesStylesOrRawValue;
shouldUpdateStyles = typeof data.shouldUpdateStyles === 'undefined' ? true : data.shouldUpdateStyles;
shouldUpdateStyles = typeof data.shouldUpdateStyles === 'undefined' ? false : data.shouldUpdateStyles;
variablesColor = typeof data.variablesColor === 'undefined' ? true : data.variablesColor;
variablesBoolean = typeof data.variablesBoolean === 'undefined' ? true : data.variablesBoolean;
variablesNumber = typeof data.variablesNumber === 'undefined' ? true : data.variablesNumber;
Expand Down

0 comments on commit b732147

Please sign in to comment.