Denperidge b6cc1ed87d [feat] Preferences keyboard accessibility
- tabs now have tabindex; they now work with tab navigation
  This is not a perfect solution yet (it pops back up for the header)
  But it is better than the current... nothing
- Default categories now works with tab navigation
- tabs, checkbox-onoff & default category label now support the Enter key
- Fixed bottom buttons focus outline
- Reset defaults/back buttons are now buttons
  This, alongside some aria-trickery, should allow the current
  a element based workflow to remain,
  whilst hopefully still being keyboard
  and screenreader accessible
2025-03-15 11:48:21 +01:00

15 lines
793 B
HTML

<p class="small_font">
{{- _('These settings are stored in your cookies, this allows us not to store this data about you.') -}}
<br>{{- _("These cookies serve your sole convenience, we don't use these cookies to track you.") -}}
</p>{{- '' -}}
<input type="submit" value="{{ _('Save') }}">{{- '' -}}
<button aria-label="{{ _('Reset defaults') }}" class="{% if rtl %}left{% else %}right{% endif %} preferences_back">{{- '' -}}
<a tabindex="-1" aria-hidden="true" href="{{ url_for('clear_cookies') }}">{{ _('Reset defaults') }}</a>{{- '' -}}
</button>{{- '' -}}
<button aria-label="{{ _('Back') }}" class="{% if rtl %}left{% else %}right{% endif %} preferences_back">{{- '' -}}
<a tabindex="-1" aria-hidden="true" href="{{ url_for('index') }}">{{ _('Back') }}</a>{{- '' -}}
</button>