@@ -11,41 +11,9 @@ exports[`<ComponentPlayground /> Should render the dark theme correctly 1`] = `
1111 class = " playgroundCode"
1212 >
1313 <div
14- class = " ReactCodeMirror playgroundStage"
14+ class = " react-codemirror2 playgroundStage"
1515 >
16- <textarea
17- autocomplete = " off"
18- >
19- /**
20- * Sample React Component
21- * Output domContainerNode is 'mountNode'
22- */
23-
24- const styles = {
25- heading : {
26- fontSize: " 2.25rem" ,
27- fontWeight: " bold"
28- },
29- copy : {
30- fontSize: " 1.5rem"
31- }
32- }
33-
34- const HelloWorld = ({ name } ) => (
35- < div>
36- < h1 style={ styles .heading } >
37- Create Live Code Examples in { name } !
38- < /h1>
39- < p style={ styles .copy } >
40- Supports Light and Dark Syntax Themes
41- < /p>
42- < /div>
43- )
44-
45- render(
46- < HelloWorld name="Spectacle" /> ,
47- mountNode)
48- </textarea >
16+
4917 </div >
5018 </div >
5119 <div
@@ -54,7 +22,9 @@ exports[`<ComponentPlayground /> Should render the dark theme correctly 1`] = `
5422 <div >
5523 <div
5624 class = " previewArea"
57- />
25+ >
26+
27+ </div >
5828 </div >
5929 </div >
6030 </div >
@@ -72,41 +42,9 @@ exports[`<ComponentPlayground /> Should render the light theme correctly 1`] = `
7242 class = " playgroundCode"
7343 >
7444 <div
75- class = " ReactCodeMirror playgroundStage"
45+ class = " react-codemirror2 playgroundStage"
7646 >
77- <textarea
78- autocomplete = " off"
79- >
80- /**
81- * Sample React Component
82- * Output domContainerNode is 'mountNode'
83- */
84-
85- const styles = {
86- heading : {
87- fontSize: " 2.25rem" ,
88- fontWeight: " bold"
89- },
90- copy : {
91- fontSize: " 1.5rem"
92- }
93- }
94-
95- const HelloWorld = ({ name } ) => (
96- < div>
97- < h1 style={ styles .heading } >
98- Create Live Code Examples in { name } !
99- < /h1>
100- < p style={ styles .copy } >
101- Supports Light and Dark Syntax Themes
102- < /p>
103- < /div>
104- )
105-
106- render(
107- < HelloWorld name="Spectacle" /> ,
108- mountNode)
109- </textarea >
47+
11048 </div >
11149 </div >
11250 <div
@@ -115,7 +53,9 @@ exports[`<ComponentPlayground /> Should render the light theme correctly 1`] = `
11553 <div >
11654 <div
11755 class = " previewArea"
118- />
56+ >
57+
58+ </div >
11959 </div >
12060 </div >
12161 </div >
@@ -133,41 +73,9 @@ exports[`<ComponentPlayground /> Should render with a custom background color 1`
13373 class = " playgroundCode"
13474 >
13575 <div
136- class = " ReactCodeMirror playgroundStage"
76+ class = " react-codemirror2 playgroundStage"
13777 >
138- <textarea
139- autocomplete = " off"
140- >
141- /**
142- * Sample React Component
143- * Output domContainerNode is 'mountNode'
144- */
145-
146- const styles = {
147- heading : {
148- fontSize: " 2.25rem" ,
149- fontWeight: " bold"
150- },
151- copy : {
152- fontSize: " 1.5rem"
153- }
154- }
155-
156- const HelloWorld = ({ name } ) => (
157- < div>
158- < h1 style={ styles .heading } >
159- Create Live Code Examples in { name } !
160- < /h1>
161- < p style={ styles .copy } >
162- Supports Light and Dark Syntax Themes
163- < /p>
164- < /div>
165- )
166-
167- render(
168- < HelloWorld name="Spectacle" /> ,
169- mountNode)
170- </textarea >
78+
17179 </div >
17280 </div >
17381 <div
@@ -176,7 +84,9 @@ exports[`<ComponentPlayground /> Should render with a custom background color 1`
17684 <div >
17785 <div
17886 class = " previewArea"
179- />
87+ >
88+
89+ </div >
18090 </div >
18191 </div >
18292 </div >
@@ -194,14 +104,9 @@ exports[`<ComponentPlayground /> Should render with a custom code block 1`] = `
194104 class = " playgroundCode"
195105 >
196106 <div
197- class = " ReactCodeMirror playgroundStage"
107+ class = " react-codemirror2 playgroundStage"
198108 >
199- <textarea
200- autocomplete = " off"
201- >
202- const Button = ({ title } ) => (< button type="button"> { title } < /button> );
203- render(< Button title="My Button" /> , mountNode);
204- </textarea >
109+
205110 </div >
206111 </div >
207112 <div
@@ -210,7 +115,9 @@ exports[`<ComponentPlayground /> Should render with a custom code block 1`] = `
210115 <div >
211116 <div
212117 class = " previewArea"
213- />
118+ >
119+
120+ </div >
214121 </div >
215122 </div >
216123 </div >
0 commit comments