From df3f1ea158942a5f894df6831a8dfb0ab355134a Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Thu, 16 Jan 2025 13:31:07 -0800 Subject: [PATCH] fix: Remove extra class from style macro (#7623) --- packages/@react-spectrum/s2/style/__tests__/style-macro.test.js | 2 +- packages/@react-spectrum/s2/style/style-macro.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@react-spectrum/s2/style/__tests__/style-macro.test.js b/packages/@react-spectrum/s2/style/__tests__/style-macro.test.js index d5d1336adc5..3762768c1b6 100644 --- a/packages/@react-spectrum/s2/style/__tests__/style-macro.test.js +++ b/packages/@react-spectrum/s2/style/__tests__/style-macro.test.js @@ -59,7 +59,7 @@ describe('style-macro', () => { " `); - expect(js).toMatchInlineSnapshot('" . A-13alit4c A-13alit4ed"'); + expect(js).toMatchInlineSnapshot('" A-13alit4c A-13alit4ed"'); }); it('should support self references', () => { diff --git a/packages/@react-spectrum/s2/style/style-macro.ts b/packages/@react-spectrum/s2/style/style-macro.ts index a871a80afa4..4fa4a8d8b16 100644 --- a/packages/@react-spectrum/s2/style/style-macro.ts +++ b/packages/@react-spectrum/s2/style/style-macro.ts @@ -268,7 +268,7 @@ export function createTheme(theme: T): StyleFunction(); for (let [property, propertyRules] of rules) { if (isStatic) {