Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/flat-taxis-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tokens-studio/figma-plugin": patch
---

Fix incomplete theme application requiring multiple clicks to update all layers
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { getThemeReferences } from './getThemeReferences';
import { defaultTokenValueRetriever } from '../TokenValueRetriever';
import { TokenFormatOptions } from '../TokenFormatStoreClass';
import { ApplyVariablesStylesOrRawValues } from '@/constants/ApplyVariablesStyleOrder';
import { UpdateMode } from '@/constants/UpdateMode';
import updateStyles from '../updateStyles';

export const update: AsyncMessageChannelHandlers[AsyncMessageTypes.UPDATE] = async (msg) => {
Expand Down Expand Up @@ -50,6 +51,7 @@ export const update: AsyncMessageChannelHandlers[AsyncMessageTypes.UPDATE] = asy

allWithData = await defaultNodeManager.findBaseNodesWithData({
updateMode: msg.settings.updateMode,
nodesWithoutPluginData: msg.settings.updateMode === UpdateMode.SELECTION,
});

await updateNodes(allWithData, String(msg.settings.baseFontSize || 16));
Expand Down
Loading