Skip to content

Commit

Permalink
Updated ComponentStylesPrefixContent from ⭐ to ⚡
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeisalso committed Feb 3, 2025
1 parent f9fa4e4 commit 6fc50db
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/swift-flowers-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@qwik.dev/core': major
---

Updated ComponentStylesPrefixContent from ⭐️ to ⚡️
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export const List = component$(() => {
});
```

This will render a css selector of `.list.️8vzca0-0 > *:nth-child(3)`, allowing you to target child components. This could be considered the equivalent of using `::ng-deep` in Angular.
This will render a css selector of `.list.️8vzca0-0 > *:nth-child(3)`, allowing you to target child components. This could be considered the equivalent of using `::ng-deep` in Angular.

> Beware that this may have unintended effects that cascade down your component tree.
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik/src/core/shared/utils/markers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const OnRenderProp = 'q:renderFn';
export const ComponentStylesPrefixHost = '💎';

/** Component style content prefix */
export const ComponentStylesPrefixContent = '️';
export const ComponentStylesPrefixContent = '️';

/** Prefix used to identify on listeners. */
export const EventPrefix = 'on:';
Expand Down
10 changes: 5 additions & 5 deletions starters/e2e/e2e.render.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,31 @@ test.describe("render", () => {

const attributes = page.locator("#attributes");

await expect(attributes).toHaveClass("️unvb18-1 even stable0");
await expect(attributes).toHaveClass("️unvb18-1 even stable0");
await expect(attributes).toHaveAttribute("aria-hidden", "true");
await expect(attributes).toHaveAttribute("preventdefault:click", "");

await increment.click();

await expect(attributes).toHaveClass("️unvb18-1 odd stable0");
await expect(attributes).toHaveClass("️unvb18-1 odd stable0");
await expect(attributes).toHaveAttribute("aria-hidden", "true");
await expect(attributes).toHaveAttribute("preventdefault:click", "");

await toggle.click();

await expect(attributes).toHaveClass("️unvb18-1");
await expect(attributes).toHaveClass("️unvb18-1");
await expect(attributes).not.toHaveAttribute("aria-hidden");
await expect(attributes).not.toHaveAttribute("preventdefault:click");

await increment.click();

await expect(attributes).toHaveClass("️unvb18-1");
await expect(attributes).toHaveClass("️unvb18-1");
await expect(attributes).not.toHaveAttribute("aria-hidden");
await expect(attributes).not.toHaveAttribute("preventdefault:click");

await toggle.click();

await expect(attributes).toHaveClass("️unvb18-1 even stable0");
await expect(attributes).toHaveClass("️unvb18-1 even stable0");
await expect(attributes).toHaveAttribute("aria-hidden", "true");
await expect(attributes).toHaveAttribute("preventdefault:click", "");
});
Expand Down

0 comments on commit 6fc50db

Please sign in to comment.