Skip to content

Commit f63c9cc

Browse files
committed
fix(index.html): preview not updating when a color is picked
1 parent a32fd4d commit f63c9cc

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

index.html

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,24 @@ <h1 id="head">Code Magic</h1>
166166

167167
<div class="colors">
168168
<label for="color" class="color">
169-
<input type="text" data-coloris id="gradient-text-color1" />
169+
<input
170+
type="text"
171+
data-coloris
172+
id="gradient-text-color1"
173+
class="gradient-text-inputs"
174+
/>
170175
<span>First Color</span>
171176
</label>
172177

173178
<div class="preview" id="gradient-text-color-preview"></div>
174179

175180
<label for="color" class="color">
176-
<input type="text" data-coloris id="gradient-text-color2" />
181+
<input
182+
type="text"
183+
data-coloris
184+
id="gradient-text-color2"
185+
class="gradient-text-inputs"
186+
/>
177187
<span>Second Color</span>
178188
</label>
179189
</div>
@@ -198,14 +208,24 @@ <h1 id="head">Code Magic</h1>
198208
<div data-content="gradient-border">
199209
<div class="colors">
200210
<label for="color" class="color">
201-
<input type="text" data-coloris id="gradient-border-color1" />
211+
<input
212+
type="text"
213+
data-coloris
214+
id="gradient-border-color1"
215+
class="gradient-text-inputs"
216+
/>
202217
<span>First Color</span>
203218
</label>
204219

205220
<div class="preview" id="gradient-border-color-preview"></div>
206221

207222
<label for="color" class="color">
208-
<input type="text" data-coloris id="gradient-border-color2" />
223+
<input
224+
type="text"
225+
data-coloris
226+
id="gradient-border-color2"
227+
class="gradient-text-inputs"
228+
/>
209229
<span>Second Color</span>
210230
</label>
211231
</div>
@@ -246,14 +266,24 @@ <h1 id="head">Code Magic</h1>
246266
<div data-content="gradient-background">
247267
<div class="colors">
248268
<label for="color" class="color">
249-
<input type="text" data-coloris id="gradient-background-color1" />
269+
<input
270+
type="text"
271+
data-coloris
272+
id="gradient-background-color1"
273+
class="gradient-text-inputs"
274+
/>
250275
<span>First Color</span>
251276
</label>
252277

253278
<div class="preview" id="gradient-background-color-preview"></div>
254279

255280
<label for="color" class="color">
256-
<input type="text" data-coloris id="gradient-background-color2" />
281+
<input
282+
type="text"
283+
data-coloris
284+
id="gradient-background-color2"
285+
class="gradient-text-inputs"
286+
/>
257287
<span>Second Color</span>
258288
</label>
259289
</div>

0 commit comments

Comments
 (0)