-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from cozy/inputs
Rework the error tooltips, form-floating, and input-group
- Loading branch information
Showing
10 changed files
with
104 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,13 +106,36 @@ <h2>Material inputs</h2> | |
class="form-control is-invalid" | ||
id="lightFloatingInputInvalid" | ||
placeholder="[email protected]" | ||
value="[email protected]" | ||
value="$invalid" | ||
required | ||
autocomplete="off" | ||
/> | ||
<label for="lightFloatingInputInvalid">Invalid input</label> | ||
<div class="invalid-tooltip"> | ||
<div class="invalid-tooltip mb-1"> | ||
<div class="tooltip-arrow"></div> | ||
<span class="icon icon-alert bg-dark"></span> | ||
This input is not valid | ||
</div> | ||
<ul class="fst-italic small"> | ||
<li class="text-danger">Only letters and digits</li> | ||
<li class="text-danger">Start with a letter</li> | ||
<li class="text-muted">Do not enter your email address</li> | ||
</ul> | ||
</form> | ||
<form class="input-group form-floating has-validation mb-3"> | ||
<input | ||
type="text" | ||
class="form-control is-invalid" | ||
id="lightFloatingInputGroup" | ||
placeholder="username" | ||
required | ||
autocomplete="off" | ||
/> | ||
<label for="lightFloatingInputGroup">Input group</label> | ||
<span class="input-group-text">@example.com</span> | ||
<div class="invalid-tooltip mb-1"> | ||
<div class="tooltip-arrow"></div> | ||
<span class="icon icon-alert bg-dark"></span> | ||
This input is not valid | ||
</div> | ||
</form> | ||
|
@@ -209,13 +232,36 @@ <h2>Material inputs</h2> | |
class="form-control is-invalid" | ||
id="invertedFloatingInputInvalid" | ||
placeholder="[email protected]" | ||
value="[email protected]" | ||
value="$invalid" | ||
required | ||
autocomplete="off" | ||
/> | ||
<label for="invertedFloatingInputInvalid">Invalid input</label> | ||
<div class="invalid-tooltip"> | ||
<div class="invalid-tooltip mb-1"> | ||
<div class="tooltip-arrow"></div> | ||
<span class="icon icon-alert bg-white"></span> | ||
This input is not valid | ||
</div> | ||
<ul class="fst-italic small"> | ||
<li class="text-danger">Only letters and digits</li> | ||
<li class="text-danger">Start with a letter</li> | ||
<li class="text-muted">Do not enter your email address</li> | ||
</ul> | ||
</form> | ||
<form class="input-group form-floating has-validation mb-3"> | ||
<input | ||
type="text" | ||
class="form-control is-invalid" | ||
id="invertedFloatingInputGroup" | ||
placeholder="username" | ||
required | ||
autocomplete="off" | ||
/> | ||
<label for="invertedFloatingInputGroup">Input group</label> | ||
<span class="input-group-text">@example.com</span> | ||
<div class="invalid-tooltip mb-1"> | ||
<div class="tooltip-arrow"></div> | ||
<span class="icon icon-alert bg-dark"></span> | ||
This input is not valid | ||
</div> | ||
</form> | ||
|
@@ -310,13 +356,36 @@ <h2>Material inputs</h2> | |
class="form-control is-invalid" | ||
id="darkFloatingInputInvalid" | ||
placeholder="[email protected]" | ||
value="[email protected]" | ||
value="$invalid" | ||
required | ||
autocomplete="off" | ||
/> | ||
<label for="darkFloatingInputInvalid">Invalid input</label> | ||
<div class="invalid-tooltip"> | ||
<div class="invalid-tooltip mb-1"> | ||
<div class="tooltip-arrow"></div> | ||
<span class="icon icon-alert bg-white"></span> | ||
This input is not valid | ||
</div> | ||
<ul class="fst-italic small"> | ||
<li class="text-danger">Only letters and digits</li> | ||
<li class="text-danger">Start with a letter</li> | ||
<li class="text-muted">Do not enter your email address</li> | ||
</ul> | ||
</form> | ||
<form class="input-group form-floating has-validation mb-3"> | ||
<input | ||
type="text" | ||
class="form-control is-invalid" | ||
id="darkFloatingInputGroup" | ||
placeholder="username" | ||
required | ||
autocomplete="off" | ||
/> | ||
<label for="darkFloatingInputGroup">Input group</label> | ||
<span class="input-group-text">@example.com</span> | ||
<div class="invalid-tooltip mb-1"> | ||
<div class="tooltip-arrow"></div> | ||
<span class="icon icon-alert bg-dark"></span> | ||
This input is not valid | ||
</div> | ||
</form> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+32.8 KB
(130%)
screenshots/reference/docs_Forms_0_document_0_reference.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters