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 22, 2023
1 parent 8423208 commit fadbe74
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 fadbe74

Please sign in to comment.