Skip to content

Commit df3f1ea

Browse files
authored
fix: Remove extra class from style macro (#7623)
1 parent 1547e25 commit df3f1ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@react-spectrum/s2/style/__tests__/style-macro.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('style-macro', () => {
5959
6060
"
6161
`);
62-
expect(js).toMatchInlineSnapshot('" . A-13alit4c A-13alit4ed"');
62+
expect(js).toMatchInlineSnapshot('" A-13alit4c A-13alit4ed"');
6363
});
6464

6565
it('should support self references', () => {

packages/@react-spectrum/s2/style/style-macro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export function createTheme<T extends Theme>(theme: T): StyleFunction<ThemePrope
268268

269269
// Generate JS and CSS for each rule.
270270
let isStatic = !(hasConditions || allowedOverrides);
271-
let className = ' .';
271+
let className = '';
272272
let rulesByLayer = new Map<string, string[]>();
273273
for (let [property, propertyRules] of rules) {
274274
if (isStatic) {

0 commit comments

Comments
 (0)