Skip to content

Commit

Permalink
fix: Remove extra class from style macro (#7623)
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett authored Jan 16, 2025
1 parent 1547e25 commit df3f1ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-spectrum/s2/style/style-macro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export function createTheme<T extends Theme>(theme: T): StyleFunction<ThemePrope

// Generate JS and CSS for each rule.
let isStatic = !(hasConditions || allowedOverrides);
let className = ' .';
let className = '';
let rulesByLayer = new Map<string, string[]>();
for (let [property, propertyRules] of rules) {
if (isStatic) {
Expand Down

1 comment on commit df3f1ea

@rspbot
Copy link

@rspbot rspbot commented on df3f1ea Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.