From b718e901910e772f0e9396156ca87aae31a4ba6c Mon Sep 17 00:00:00 2001 From: Lukas Oppermann Date: Fri, 31 May 2024 15:02:25 +0200 Subject: [PATCH 1/2] fix for size-fine and size-coarse output --- src/platforms/css.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/css.ts b/src/platforms/css.ts index 2c1161719..69a4c8081 100644 --- a/src/platforms/css.ts +++ b/src/platforms/css.ts @@ -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'), }, ], }, From 57dd21c888aeae65674895b29c2e8f408ae73a0e Mon Sep 17 00:00:00 2001 From: Lukas Oppermann Date: Fri, 31 May 2024 15:04:35 +0200 Subject: [PATCH 2/2] add changeset --- .changeset/long-parrots-change.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/long-parrots-change.md diff --git a/.changeset/long-parrots-change.md b/.changeset/long-parrots-change.md new file mode 100644 index 000000000..e2c9de913 --- /dev/null +++ b/.changeset/long-parrots-change.md @@ -0,0 +1,5 @@ +--- +'@primer/primitives': patch +--- + +Fix to output size fine and coarse as css