-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add compact text input styling (#228)
- closes #202
- Loading branch information
Showing
2 changed files
with
45 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
39 changes: 31 additions & 8 deletions
39
app/views/examples/honeycrisp_compact/_form_elements.html.erb
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,11 +1,34 @@ | ||
<div class="honeycrisp-compact"> | ||
<label for="apple_quality" class="form-question">What's your favorite apple quality?</label> | ||
<div class="select"> | ||
<select class="select__element" name="apple_quality" id="apple_quality"> | ||
<option selected disabled>Choose a selection</option> | ||
<option value="crisp">Crisp</option> | ||
<option value="sweet">Sweet</option> | ||
<option value="tart">Tart</option> | ||
</select> | ||
|
||
<div class="form-group"> | ||
<label class="form-question" for="apple_comment">What would you like to tell us about apples?</label> | ||
<input type="text" class="text-input" name="apple_comment" id="apple_comment"> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="form-question" for="favorite_apples">What are your favorite apples?</label> | ||
<input type="text" class="text-input form-width--long" name="favorite_apples" id="favorite_apples"> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="form-question" for="them_apples">How about them apples?</label> | ||
<input type="text" class="text-input form-width--med" name="them_apples" id="them_apples"> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="form-question" for="phone">What is your phone number?</label> | ||
<input type="tel" class="text-input form-width--phone phone-input" name="phone" id="phone"> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="apple_quality" class="form-question">What's your favorite apple quality?</label> | ||
<div class="select"> | ||
<select class="select__element" name="apple_quality" id="apple_quality"> | ||
<option selected disabled>Choose a selection</option> | ||
<option value="crisp">Crisp</option> | ||
<option value="sweet">Sweet</option> | ||
<option value="tart">Tart</option> | ||
</select> | ||
</div> | ||
</div> | ||
</div> |