Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated markers.ts to employ the '⚡️' prefix for component styles, enhancing consistency with the Qwik Framework. #7248

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
7 changes: 7 additions & 0 deletions .changeset/slimy-cougars-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'eslint-plugin-qwik': patch
'@builder.io/qwik-city': patch
'@builder.io/qwik': patch
---

removed playwrite patching of hasAttribute with toHaveAttribute
5 changes: 5 additions & 0 deletions .changeset/slow-comics-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@builder.io/qwik': patch
---

Updated markers.ts to employ the '⚡️' prefix for component styles, enhancing consistency with the Qwik Framework.
16 changes: 8 additions & 8 deletions packages/qwik/src/core/render/dom/render.unit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,15 @@ test('should render a component with scoped styles', async () => {
`
<host q:version="dev" q:container="resumed" q:render="dom-dev">
<style q:style="ml52vk-0" hidden="">
.stuff.️ml52vk-0 {
.stuff.️ml52vk-0 {
color: red;
}
</style>
<!--qv -->
<div class="️ml52vk-0">
<div class="️ml52vk-0 stuff" aria-hidden="true">
<div class="️ml52vk-0">
<div class="️ml52vk-0 stuff" aria-hidden="true">
Hello
<button class="️ml52vk-0">
<button class="️ml52vk-0">
Toggle
</button>
</div>
Expand All @@ -241,15 +241,15 @@ test('should render a component with scoped styles', async () => {
`
<host q:version="dev" q:container="resumed" q:render="dom-dev">
<style q:style="ml52vk-0" hidden="">
.stuff.️ml52vk-0 {
.stuff.️ml52vk-0 {
color: red;
}
</style>
<!--qv -->
<div class="️ml52vk-0">
<div class="️ml52vk-0">
<div class="️ml52vk-0">
<div class="️ml52vk-0">
Hello
<button class="️ml52vk-0">
<button class="️ml52vk-0">
Toggle
</button>
</div>
Expand Down
46 changes: 23 additions & 23 deletions packages/qwik/src/core/render/ssr/render-ssr.unit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1125,43 +1125,43 @@ test('component useStylesScoped()', async () => {
`
<html q:container="paused" q:version="dev" q:render="ssr-dev" q:base="" q:manifest-hash="test">
<body>
<!--qv q:sstyle=️1d-0|️1e-1 q:id=0 q:key=sX:-->
<!--qv q:sstyle=️1d-0|️1e-1 q:id=0 q:key=sX:-->
<style q:style="1d-0" hidden>
.host.️1d-0 {
.host.️1d-0 {
color: red;
}
</style>
<style q:style="1e-1" hidden>
.blue.️1e-1 {
.blue.️1e-1 {
color: blue;
}
</style>
<div class="️1d-0 ️1e-1 host">
<div class="️1d-0 ️1e-1 div">
<div class="️1d-0 ️1e-1 host">
<div class="️1d-0 ️1e-1 div">
Scoped1
<!--qv q:s q:sref=0 q:key=-->
<div>projected</div>
<!--/qv-->
<p class="️1d-0 ️1e-1">Que tal?</p>
<p class="️1d-0 ️1e-1">Que tal?</p>
</div>
<!--qv q:sstyle=️f0gmsw-0 q:id=1 q:key=sX:-->
<!--qv q:sstyle=️f0gmsw-0 q:id=1 q:key=sX:-->
<style q:style="f0gmsw-0" hidden>
.host.️f0gmsw-0 {
.host.️f0gmsw-0 {
color: blue;
}
</style>
<div class="️f0gmsw-0 host">
<div class="️f0gmsw-0">
<div class="️f0gmsw-0 host">
<div class="️f0gmsw-0">
Scoped2
<p class="️f0gmsw-0">Bien</p>
<p class="️f0gmsw-0">Bien</p>
</div>
</div>
<!--/qv-->
<!--qv q:sstyle=️f0gmsw-0 q:id=2 q:key=sX:-->
<div class="️f0gmsw-0 host">
<div class="️f0gmsw-0">
<!--qv q:sstyle=️f0gmsw-0 q:id=2 q:key=sX:-->
<div class="️f0gmsw-0 host">
<div class="️f0gmsw-0">
Scoped2
<p class="️f0gmsw-0">Bien</p>
<p class="️f0gmsw-0">Bien</p>
</div>
</div>
<!--/qv-->
Expand All @@ -1180,21 +1180,21 @@ test('component useStylesScoped() + slot', async () => {
</>,
`
<html q:container="paused" q:version="dev" q:render="ssr-dev" q:base="" q:manifest-hash="test">
<!--qv q:sstyle=️lkei4s-0 q:id=0 q:key=sX:-->
<body class="️lkei4s-0">
<!--qv q:sstyle=️tdblg1-0 q:id=1 q:key=sX:-->
<!--qv q:sstyle=️lkei4s-0 q:id=0 q:key=sX:-->
<body class="️lkei4s-0">
<!--qv q:sstyle=️tdblg1-0 q:id=1 q:key=sX:-->
<style q:style="tdblg1-0" hidden>
.host.️tdblg1-0 {
.host.️tdblg1-0 {
background: green;
}
</style>
<div class="️tdblg1-0">
<div class="️tdblg1-0">
<!--qv q:s q:sref=1 q:key=one-->
<div q:slot="one" class="️lkei4s-0">One</div>
<div q:slot="one" class="️lkei4s-0">One</div>
<!--/qv-->
</div>
<q:template q:slot="two" hidden aria-hidden="true" class="️lkei4s-0">
<div q:slot="two" class="️lkei4s-0">Two</div>
<q:template q:slot="two" hidden aria-hidden="true" class="️lkei4s-0">
<div q:slot="two" class="️lkei4s-0">Two</div>
</q:template>
<!--/qv-->
</body>
Expand Down
Loading
Loading