Skip to content

Commit

Permalink
feat: move search component into molecules
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander committed Jan 14, 2020
1 parent 3cba6b6 commit 11b08c8
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 27 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
module.exports = {
title: 'Search Input',
title: 'Search',
status: 'wip',
context: {
standAlone: false,
searchInputs: [
{
name: 's',
},
{
name: 'disabled',
disabled: true
}
]
name: 's',
placeholder: 'Search…',
label: 'Search'
},
variants: [
{
Expand Down
6 changes: 6 additions & 0 deletions src/components/02-molecules/07-search/search.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% if not standAlone %}<div class="spacer"></div>{% endif %}
<form class="search-input">
<label for="{{ name }}" class="screen-reader-text">{{ label }}</label>
<input id="{{ name }}" name="{{ name }}" placeholder="{{ placeholder }}" type="search"{% if disabled %} disabled{% endif %} />
<button type="submit"{% if disabled %} disabled{% endif %}><span class="screen-reader-text">{{ submitLabel }}</span>{% render '@svg', {svg: 'search'}, true %}</button>
</form>

0 comments on commit 11b08c8

Please sign in to comment.