Fix lint issue in side_panels.html template

pull/10078/head
Sage Abdullah 2023-02-14 13:45:03 +00:00 zatwierdzone przez Matt Westcott
rodzic c52074250b
commit 5d90ae6c82
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -9,11 +9,11 @@
<label class="form-side__resize-grip" data-form-side-resize-grip>
{% comment %}
By default, the `dir` attribute is inherited from the ancestor
(i.e. the root `<html>` element in our case).
(i.e. the root `html` element in our case).
On Chrome and Firefox, moving the slider with left-right arrow keys
is correctly reversed when dir="rtl". On Safari, this isn't the case.
So, we explicitly set the `dir` attribute to "ltr" on the input and handle the correct
direction in the JS code based on the `dir` attribute of the root `<html>`.
direction in the JS code based on the `dir` attribute of the root `html`.
{% endcomment %}
<input type="range" step="10" dir="ltr" class="form-side__width-input" name="wagtail-side-panel-width" data-form-side-width-input />
<span class="w-sr-only">{% trans 'Side panel width' %}</span>