projects
/
oweals
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-base: add ARIA label to reveal/hide password button
[oweals/luci.git]
/
modules
/
luci-base
/
luasrc
/
view
/
cbi
/
value.htm
diff --git
a/modules/luci-base/luasrc/view/cbi/value.htm
b/modules/luci-base/luasrc/view/cbi/value.htm
index 8eec865348c3ecec9ddf7d1f981565ee0d1b0663..79a358b3052bb16680dd027c113441f37aa4a718 100644
(file)
--- a/
modules/luci-base/luasrc/view/cbi/value.htm
+++ b/
modules/luci-base/luasrc/view/cbi/value.htm
@@
-21,6
+21,6
@@
ifattr(#self.keylist > 0, "data-choices", { self.keylist, self.vallist })
%> />
<%- if self.password then -%>
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%>
<% end %>
<%+cbi/valuefooter%>