Skip to content

Commit

Permalink
Remove link from preferences
Browse files Browse the repository at this point in the history
Removes warnings from w3c validator that label and input are not valid
inside an a element. Because preferences aren't links anyway this
increases semantic as well.

Relates to #130.
  • Loading branch information
mvitz committed Apr 3, 2015
1 parent 02092ad commit 2bfc991
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/statuses/views/layout.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
[statuses.views.common :refer [icon]]))

(defn preference [id title iconname]
[:li [:a {:name id}
(icon iconname)
[:label {:for (str "pref-" id)} title]
(check-box {:class "pref" :disabled "disabled"} (str "pref-" id))]])
[:li [:p.navbar-text
(icon iconname)
[:label {:for (str "pref-" id)} title]
(check-box {:class "pref" :disabled "disabled"} (str "pref-" id))]])

(defn nav-link [url title iconname]
[:li (link-to url (icon iconname) title)])
Expand Down

0 comments on commit 2bfc991

Please sign in to comment.