This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ let createCacheWithTheme = /* #__PURE__ */ weakMemoize(outerTheme => {
17
17
function EmotionThemeProvider ( theme : object | ( ( Obj : object ) => Object ) ) {
18
18
let _theme = useEmotionTheme ( )
19
19
if ( theme !== _theme ) {
20
+ // @ts -ignore
20
21
_theme = createCacheWithTheme ( _theme ) ( theme )
21
22
}
22
23
_EmotionThemeProvider ( _theme )
Original file line number Diff line number Diff line change @@ -155,7 +155,6 @@ exports[`styled composition 2`] = `
155
155
156
156
<h1
157
157
class = " legacy__class emotion-0"
158
- scale = " 2"
159
158
>
160
159
hello world final
161
160
</h1 >
@@ -203,7 +202,6 @@ exports[`styled function in expression 1`] = `
203
202
204
203
<h1
205
204
class = " legacy__class emotion-0"
206
- scale = " 2"
207
205
>
208
206
hello world
209
207
</h1 >
@@ -226,8 +224,6 @@ exports[`styled glamorous style api & composition 1`] = `
226
224
227
225
<h1
228
226
class = " emotion-0"
229
- flex = " 1"
230
- fontsize = " 20"
231
227
>
232
228
hello world
233
229
</h1 >
@@ -255,7 +251,6 @@ exports[`styled handles more than 10 dynamic properties 1`] = `
255
251
256
252
<h1
257
253
class = " legacy__class emotion-0"
258
- theme = " [object Object]"
259
254
>
260
255
hello world
261
256
</h1 >
@@ -490,7 +485,6 @@ exports[`styled objects 1`] = `
490
485
491
486
<h1
492
487
class = " emotion-0"
493
- display = " flex"
494
488
>
495
489
hello world
496
490
</h1 >
@@ -522,16 +516,16 @@ exports[`styled prop filtering 1`] = `
522
516
<a
523
517
a = " true"
524
518
aria-label = " some label"
519
+ arialabel = " some label"
525
520
b = " true"
526
521
class = " emotion-0"
527
522
cool = " true"
528
523
data-wow = " value"
524
+ datawow = " value"
529
525
filtering = " true"
530
526
href = " link"
531
527
is = " true"
532
- m = " 3"
533
528
prop = " true"
534
- pt = " 4"
535
529
wow = " true"
536
530
>
537
531
hello world
Original file line number Diff line number Diff line change 1
- import { ComponentOptions } from "@vue/runtime-core"
2
1
import theme from "@chakra-ui/vue-theme"
2
+ import { EmotionThemeContextSymbol } from "@chakra-ui/vue-styled"
3
3
import "@testing-library/jest-dom"
4
4
import "@testing-library/jest-dom/extend-expect"
5
5
import * as vtl from "@testing-library/vue"
@@ -14,6 +14,7 @@ const useDefaultProviders = () => {
14
14
provide ( "$chakraTheme" , theme )
15
15
provide ( "$chakraColorMode" , "light" )
16
16
provide ( "$chakraIcons" , { } )
17
+ provide ( EmotionThemeContextSymbol , theme )
17
18
}
18
19
19
20
export type TestRenderProps = {
You can’t perform that action at this time.
0 commit comments