Accessibility Bug Fix: Tab focus doesn't reach Dark mode toggle button (#453)
This commit is contained in:
parent
602e98448d
commit
707466b1df
2 changed files with 8 additions and 2 deletions
|
@ -142,4 +142,10 @@
|
|||
|
||||
});
|
||||
|
||||
$("#mode-toggle-wrapper").keyup(function(e){
|
||||
if(e.keyCode == 13) {
|
||||
toggle.flipMode();
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
<span class="icon-border order-2"></span>
|
||||
{% endif %}
|
||||
|
||||
<span id="mode-toggle-wrapper" class="order-1">
|
||||
<span id="mode-toggle-wrapper" class="order-1" tabindex="0">
|
||||
{% include mode-toggle.html %}
|
||||
</span>
|
||||
{% endunless %}
|
||||
|
|
Loading…
Reference in a new issue