Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
bug(search): remove native date field clear button
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoAref committed Jan 23, 2017
1 parent 1d401e1 commit e33142a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/demo/materials/04-molecules/05-search-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@
{{/each}}
</ul>
</div>

<label for="searchWithDate" class="dc-label">Search box using date field</label>
<div class="dc-search-form">
<input class="dc-input dc-search-form__input" id="searchWithDate" type="date" placeholder="Search...">
<button class="dc-btn dc-search-form__btn">
<i id="searchWithDate" class="dc-icon dc-icon--search dc-icon--interactive"></i>
</button>
</div>
4 changes: 4 additions & 0 deletions src/styles/molecules/_search-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@
}

@mixin dc-search-form__input {
max-height: 36px;
margin: 0;
padding-right: 30px;
-moz-appearance: none;
-webkit-appearance: none;

&[type="date"]::-webkit-clear-button { display: none; }
&[type="date"]::-ms-clear { display: none; }
}

@mixin dc-search-form__btn {
Expand Down

0 comments on commit e33142a

Please sign in to comment.