|
33 | 33 | padding: 0;
|
34 | 34 | }
|
35 | 35 | }
|
| 36 | + |
| 37 | + .custom { |
| 38 | + --highlight-color-focused: purple; |
| 39 | + --highlight-color-invalid: purple; |
| 40 | + --highlight-color-valid: purple; |
| 41 | + --highlight-height: 6px; |
| 42 | + } |
36 | 43 | </style>
|
37 | 44 | </head>
|
38 | 45 |
|
@@ -174,6 +181,49 @@ <h2>Invalid</h2>
|
174 | 181 | </div>
|
175 | 182 | </div>
|
176 | 183 |
|
| 184 | + <h1>No Fill, Custom</h1> |
| 185 | + <div class="grid"> |
| 186 | + <div class="grid-item"> |
| 187 | + <h2>Focus</h2> |
| 188 | + <ion-input |
| 189 | + label-placement="start" |
| 190 | + |
| 191 | + class="has-focus custom" |
| 192 | + label="Email" |
| 193 | + error-text="Please enter a valid email" |
| 194 | + helper-text="Enter an email" |
| 195 | + counter="true" |
| 196 | + maxlength="20" |
| 197 | + ></ion-input> |
| 198 | + </div> |
| 199 | + |
| 200 | + <div class="grid-item"> |
| 201 | + <h2>Valid, Focus</h2> |
| 202 | + <ion-input |
| 203 | + label-placement="start" |
| 204 | + class="ion-valid has-focus custom" |
| 205 | + label="Email" |
| 206 | + error-text="Please enter a valid email" |
| 207 | + helper-text="Enter an email" |
| 208 | + counter="true" |
| 209 | + maxlength="20" |
| 210 | + ></ion-input> |
| 211 | + </div> |
| 212 | + |
| 213 | + <div class="grid-item"> |
| 214 | + <h2>Invalid</h2> |
| 215 | + <ion-input |
| 216 | + label-placement="start" |
| 217 | + class="ion-touched ion-invalid custom" |
| 218 | + label="Email" |
| 219 | + error-text="Please enter a valid email" |
| 220 | + helper-text="Enter an email" |
| 221 | + counter="true" |
| 222 | + maxlength="20" |
| 223 | + ></ion-input> |
| 224 | + </div> |
| 225 | + </div> |
| 226 | + |
177 | 227 | <h1>Solid, Default</h1>
|
178 | 228 | <div class="grid">
|
179 | 229 | <div class="grid-item">
|
@@ -312,6 +362,52 @@ <h2>Invalid</h2>
|
312 | 362 | </div>
|
313 | 363 | </div>
|
314 | 364 |
|
| 365 | + <h1>Solid, Custom</h1> |
| 366 | + <div class="grid"> |
| 367 | + <div class="grid-item"> |
| 368 | + <h2>Focus</h2> |
| 369 | + <ion-input |
| 370 | + fill="solid" |
| 371 | + label-placement="start" |
| 372 | + |
| 373 | + class="has-focus custom" |
| 374 | + label="Email" |
| 375 | + error-text="Please enter a valid email" |
| 376 | + helper-text="Enter an email" |
| 377 | + counter="true" |
| 378 | + maxlength="20" |
| 379 | + ></ion-input> |
| 380 | + </div> |
| 381 | + |
| 382 | + <div class="grid-item"> |
| 383 | + <h2>Valid, Focus</h2> |
| 384 | + <ion-input |
| 385 | + fill="solid" |
| 386 | + label-placement="start" |
| 387 | + class="ion-valid has-focus custom" |
| 388 | + label="Email" |
| 389 | + error-text="Please enter a valid email" |
| 390 | + helper-text="Enter an email" |
| 391 | + counter="true" |
| 392 | + maxlength="20" |
| 393 | + ></ion-input> |
| 394 | + </div> |
| 395 | + |
| 396 | + <div class="grid-item"> |
| 397 | + <h2>Invalid</h2> |
| 398 | + <ion-input |
| 399 | + fill="solid" |
| 400 | + label-placement="start" |
| 401 | + class="ion-touched ion-invalid custom" |
| 402 | + label="Email" |
| 403 | + error-text="Please enter a valid email" |
| 404 | + helper-text="Enter an email" |
| 405 | + counter="true" |
| 406 | + maxlength="20" |
| 407 | + ></ion-input> |
| 408 | + </div> |
| 409 | + </div> |
| 410 | + |
315 | 411 | <h1>Outline, Default</h1>
|
316 | 412 | <div class="grid">
|
317 | 413 | <div class="grid-item">
|
@@ -449,6 +545,52 @@ <h2>Invalid</h2>
|
449 | 545 | ></ion-input>
|
450 | 546 | </div>
|
451 | 547 | </div>
|
| 548 | + |
| 549 | + <h1>Outline, Custom</h1> |
| 550 | + <div class="grid"> |
| 551 | + <div class="grid-item"> |
| 552 | + <h2>Focus</h2> |
| 553 | + <ion-input |
| 554 | + fill="outline" |
| 555 | + label-placement="start" |
| 556 | + |
| 557 | + class="has-focus custom" |
| 558 | + label="Email" |
| 559 | + error-text="Please enter a valid email" |
| 560 | + helper-text="Enter an email" |
| 561 | + counter="true" |
| 562 | + maxlength="20" |
| 563 | + ></ion-input> |
| 564 | + </div> |
| 565 | + |
| 566 | + <div class="grid-item"> |
| 567 | + <h2>Valid, Focus</h2> |
| 568 | + <ion-input |
| 569 | + fill="outline" |
| 570 | + label-placement="start" |
| 571 | + class="ion-valid has-focus custom" |
| 572 | + label="Email" |
| 573 | + error-text="Please enter a valid email" |
| 574 | + helper-text="Enter an email" |
| 575 | + counter="true" |
| 576 | + maxlength="20" |
| 577 | + ></ion-input> |
| 578 | + </div> |
| 579 | + |
| 580 | + <div class="grid-item"> |
| 581 | + <h2>Invalid</h2> |
| 582 | + <ion-input |
| 583 | + fill="outline" |
| 584 | + label-placement="start" |
| 585 | + class="ion-touched ion-invalid custom" |
| 586 | + label="Email" |
| 587 | + error-text="Please enter a valid email" |
| 588 | + helper-text="Enter an email" |
| 589 | + counter="true" |
| 590 | + maxlength="20" |
| 591 | + ></ion-input> |
| 592 | + </div> |
| 593 | + </div> |
452 | 594 | </ion-content>
|
453 | 595 | </ion-app>
|
454 | 596 | </body>
|
|
0 commit comments