Make form close buttons focusable/usable with keyboard

[MAILPOET-4877]
This commit is contained in:
John Oleksowicz
2023-01-26 15:33:46 -06:00
committed by Aschepikov
parent 94954c1601
commit abfc33002c
2 changed files with 10 additions and 9 deletions

View File

@@ -343,10 +343,12 @@ div.mailpoet_form_popup {
.mailpoet_form_close_icon { .mailpoet_form_close_icon {
cursor: pointer; cursor: pointer;
display: block; display: block;
height: 20px;
margin: 0 0 0 auto; margin: 0 0 0 auto;
position: absolute; position: absolute;
right: 10px; right: 10px;
top: 10px; top: 10px;
width: 20px;
z-index: 100002; z-index: 100002;
} }

View File

@@ -27,15 +27,6 @@
data-editor-url="<%= editor_url %>" data-editor-url="<%= editor_url %>"
<% endif %> <% endif %>
> >
<% if form_type == 'popup' or form_type == 'fixed_bar' or form_type == 'slide_in' %>
<img
class="mailpoet_form_close_icon"
alt="close"
width=20
height=20
src='<%= image_url("form_close_icon/" ~ close_button_icon ~ ".svg") %>'
>
<% endif %>
<style type="text/css"> <style type="text/css">
<%= styles|raw %> <%= styles|raw %>
@@ -76,6 +67,14 @@
</p> </p>
</div> </div>
</form> </form>
<% if form_type == 'popup' or form_type == 'fixed_bar' or form_type == 'slide_in' %>
<input type="image"
class="mailpoet_form_close_icon"
alt="<%= __('Close') %>"
src='<%= image_url("form_close_icon/" ~ close_button_icon ~ ".svg") %>'
/>
<% endif %>
</div> </div>
<% if(after_widget) %> <% if(after_widget) %>