Skip to content

Commit

Permalink
refactor: refactoring after review
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Feb 23, 2023
1 parent 741907c commit b0eb33e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokens/style-dictionary.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ StyleDictionary.registerFormat({

let customMediaVariables = '';

Object.keys(breakpoint).forEach(key => {
customMediaVariables += `@custom-media --${breakpoint[key].name} (max-width: ${breakpoint[key].value}); \n`;
Object.values(breakpoint).forEach(item => {
customMediaVariables += `@custom-media --${item.name} (max-width: ${item.value}); \n`;
});

return fileHeader({ file }) + customMediaVariables;
Expand Down

0 comments on commit b0eb33e

Please sign in to comment.