Skip to content

Commit 370d0ca

Browse files
committed
Refactor #972: Use Haml style for label instead of raw HTML
1 parent 64112fb commit 370d0ca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/views/shared/_header.html.haml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@
2727
%li= link_to '立ち上げる', '/kata#startup'
2828
%li= link_to '支援', '/kata#support'
2929
%li= link_to 'FAQ', '/kata#faq'
30+
3031
/ DocSearch: https://github.com/algolia/docsearch-configs/blob/master/configs/coderdojo.json
3132
%li.search-li
32-
<label for="search" class="search-label"><img src="/img/search.svg" alt="検索" class="search-icon" /></label>
33+
%label.search-label{for: 'search'}
34+
%img.search-icon{alt: '検索', src: '/img/search.svg'}
3335
= check_box_tag :search, "検索アイコン", false, class: 'search-checkbox'
34-
.search
35-
%input#searchbox{ placeholder: "資料を検索", type: "text" }
36+
%div.search
37+
%input#searchbox{placeholder: "資料を検索", type: "text"}
3638
#hits
3739
#pagination
3840
%li= link_to 'お問い合わせ', '/#contact'

0 commit comments

Comments
 (0)