Skip to content

Commit

Permalink
fix for size-fine and size-coarse output (#963)
Browse files Browse the repository at this point in the history
* fix for size-fine and size-coarse output

* add changeset
  • Loading branch information
lukasoppermann authored May 31, 2024
1 parent 0828682 commit 8b726b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/long-parrots-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/primitives': patch
---

Fix to output size fine and coarse as css
4 changes: 2 additions & 2 deletions src/platforms/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ export const css: PlatformInitializer = (outputFile, prefix, buildPath, options)
queries: [
{
query: '@media (pointer: fine)',
matcher: (token: TransformedToken) => token.path.includes('size-fine'),
matcher: (token: TransformedToken) => token.filePath.includes('size-fine'),
},
{
query: '@media (pointer: coarse)',
matcher: (token: TransformedToken) => token.path.includes('size-coarse'),
matcher: (token: TransformedToken) => token.filePath.includes('size-coarse'),
},
],
},
Expand Down

0 comments on commit 8b726b8

Please sign in to comment.