This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
88 additions
and
40 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 |
---|---|---|
@@ -1,21 +1,15 @@ | ||
<label class="dc-label" for="optionalInput">Label</label> | ||
<label class="dc-label" for="optionalInput">Text Input</label> | ||
<input class="dc-input" type="text" id="optionalInput" placeholder="e. g. give an example"/> | ||
|
||
<label class="dc-label dc-label--required" for="requiredInput">Label</label> | ||
<label class="dc-label" for="numberInput">Number input</label> | ||
<input class="dc-input" type="number" id="numberInput" placeholder="e. g. 100"/> | ||
|
||
<label class="dc-label dc-label--required" for="requiredInput">Required Input</label> | ||
<input class="dc-input" type="text" id="requiredInput" placeholder="e. g. give an example"/> | ||
|
||
<label class="dc-label dc-label--required dc-label--is-error" for="errorInput">Label</label> | ||
<label class="dc-label dc-label--required dc-label--is-error" for="errorInput">Required Input – Error</label> | ||
<input class="dc-input dc-input--is-error" type="text" id="errorInput" placeholder="e. g. give an example"/> | ||
<span class="dc-text--error">Please don't leave this empty.</span> | ||
|
||
<label class="dc-label" for="numberInput">Stock</label> | ||
<input class="dc-input" type="number" id="numberInput" placeholder="e. g. 100"/> | ||
|
||
<label class="dc-label dc-label--disabled" for="disabledInput">Disabled input</label> | ||
<input class="dc-input dc-input--disabled" type="text" id="disabledInput" placeholder="e. g. give an example" disabled/> | ||
|
||
<label class="dc-label" for="priceInput">Price</label> | ||
<div class="dc-input-group dc-input-group--price"> | ||
<input class="dc-input dc-input--text-right" type="number" id="priceInput" placeholder="e. g. 1.000,00"/> | ||
<div class="dc-input-group__addon">€</div> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
notes: | | ||
Create input groups by using `.dc-input-group` to wrap inputs, addons with the class `.dc-input-addon` and `button`. | ||
--- | ||
<label class="dc-label" for="priceInput">Addon - Appended</label> | ||
<div class="dc-input-group"> | ||
<input class="dc-input dc-input--text-right" type="text" id="priceInput" placeholder="e. g. 100"/> | ||
<div class="dc-input-addon">€</div> | ||
</div> | ||
|
||
<label class="dc-label" for="urlInput">Addon - Prepended</label> | ||
<div class="dc-input-group"> | ||
<span class="dc-input-addon">http://</span> | ||
<input class="dc-input" type="text" id="urlInput" placeholder="e. g. brands.zalando.com"/> | ||
</div> | ||
|
||
<label class="dc-label" for="urlInput">Button - Appended</label> | ||
<div class="dc-input-group"> | ||
<input class="dc-input" type="text" id="urlInput" placeholder="e. g. brands.zalando.com"/> | ||
<button class="dc-btn dc-btn--primary"><i class="dc-font-icon-search"></i></button> | ||
</div> | ||
|
||
<label class="dc-label" for="urlInput">Addon - Prepended & Button - Appended</label> | ||
<div class="dc-input-group"> | ||
<span class="dc-input-addon">User 1</span> | ||
<input class="dc-input" type="text" id="urlInput" placeholder="Full name"/> | ||
<a class="dc-btn dc-btn--primary">Add</a> | ||
</div> |
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