luci-base: add ARIA label to reveal/hide password button
[oweals/luci.git] / modules / luci-base / luasrc / view / cbi / value.htm
index 8eec865348c3ecec9ddf7d1f981565ee0d1b0663..79a358b3052bb16680dd027c113441f37aa4a718 100644 (file)
@@ -21,6 +21,6 @@
                ifattr(#self.keylist > 0, "data-choices", { self.keylist, self.vallist })
        %> />
        <%- if self.password then -%>
-               <div class="cbi-button cbi-button-neutral" title="<%:Reveal/hide password%>" onclick="var e = this.previousElementSibling; e.type = (e.type === 'password') ? 'text' : 'password'">∗</div>
+               <button class="cbi-button cbi-button-neutral" title="<%:Reveal/hide password%>" aria-label="<%:Reveal/hide password%>" onclick="var e = this.previousElementSibling; e.type = (e.type === 'password') ? 'text' : 'password'">∗</button>
        <% end %>
 <%+cbi/valuefooter%>