mirror of
https://github.com/penpot/penpot.git
synced 2025-12-23 22:48:40 -05:00
💄 Set import Tokens default option to be Single JSON value (#7918)
This patches makes the default Tokens importing option to match the current default Tokens exporting option (single JSON value). This way it is more obvious and quick to export the tokens from a file and import in new one, --- While testing our design system we are often re-exporting and re-importing the Tokens to the files using the design system components. I'm aware that this may be addressed in the future so the Tokens are brought in together with the library. Meanwhile (and even in the future) I think it is sensible to have a symmetry between the export and import defeault options. Co-authored-by: Dalai Felinto <dalai@blender.org>
This commit is contained in:
@@ -268,8 +268,8 @@
|
||||
:on-click modal/hide!}
|
||||
(tr "labels.cancel")]
|
||||
[:> import-type-dropdown*
|
||||
{:options [{:label (tr "workspace.tokens.import-menu-zip-option") :value :zip}
|
||||
{:label (tr "workspace.tokens.import-menu-json-option") :value :file}
|
||||
{:options [{:label (tr "workspace.tokens.import-menu-json-option") :value :file}
|
||||
{:label (tr "workspace.tokens.import-menu-zip-option") :value :zip}
|
||||
{:label (tr "workspace.tokens.import-menu-folder-option") :value :folder}]
|
||||
:on-click handle-import-action
|
||||
:text-render render-button-text
|
||||
|
||||
Reference in New Issue
Block a user