Commit 3b81e25f authored by Manvel Saroyan's avatar Manvel Saroyan

Issue 5779 - Added missing checkbox in language dialog and validation persistent

parent e83db22e
......@@ -347,12 +347,12 @@
<p class="i18n_options_dialog_about_copyright"></p>
<p class="i18n_options_dialog_about_trademark"></p>
<p>
<button class="i18n_options_close primary" data-action="close-dialog"></button>
<button class="i18n_options_close primary default-focus" data-action="close-dialog"></button>
</p>
</div>
<!-- Add language subscription -->
<div id="dialog-content-language-add" class="dialog-content">
<ul id="all-lang-table-add" class="table list">
<ul id="all-lang-table-add" class="table list default-focus">
<template>
<button data-action="add-language-subscription,close-dialog" class="control add" role="checkbox">
<label class="display"></label>
......@@ -373,7 +373,7 @@
<span class="i18n_options_dialog_import_subscription_title_error error-msg"></span>
</p>
<p class="floating-input">
<input placeholder=" " id="import-list-url" type="url" class="default-focus" required/>
<input placeholder=" " id="import-list-url" type="url" required/>
<label for="import-list-url" class="i18n_options_dialog_import_subscription_location"></label>
<span class="attention"></span>
<span class="i18n_options_dialog_import_subscription_location_error error-msg"></span>
......
......@@ -227,8 +227,8 @@
element.setAttribute("aria-label", title);
if (this.details[i].searchable)
element.setAttribute("data-search", title.toLowerCase());
let control = element.querySelector(".control[role='checkbox']");
if (control)
let controls = element.querySelectorAll(".control[role='checkbox']");
for (let control of controls)
{
control.setAttribute("aria-checked", item.disabled == false);
if (isAcceptableAds(item.url) && this == collections.filterLists)
......
......@@ -351,7 +351,7 @@ html[dir="rtl"] .floating-input input:focus ~ label
}
[data-validation] .floating-input input:focus:invalid ~ .attention::before,
[data-validation] .floating-input input:focus:valid ~ .attention::before
[data-validation] .floating-input input:valid ~ .attention::before
{
content: "";
position: absolute;
......@@ -365,7 +365,7 @@ html[dir="rtl"] .floating-input input:focus ~ label
}
html[dir="rtl"] [data-validation] .floating-input input:focus:invalid ~ .attention::before,
html[dir="rtl"] [data-validation] .floating-input input:focus:valid ~ .attention::before
html[dir="rtl"] [data-validation] .floating-input input:valid ~ .attention::before
{
left: 0rem;
right: auto;
......@@ -378,7 +378,7 @@ html[dir="rtl"] [data-validation] .floating-input input:focus:valid ~ .attention
mask: url(icons/attention.svg);
}
[data-validation] .floating-input input:focus:valid ~ .attention::before
[data-validation] .floating-input input:valid ~ .attention::before
{
top: 0.8rem;
background-color: green;
......@@ -1150,6 +1150,7 @@ html[dir="rtl"] .context-menu::before
padding: 1rem 0rem;
color: #099CD0;
font-size: 1.1rem;
font-weight: 700;
text-transform: none;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment