Make form close buttons focusable/usable with keyboard
[MAILPOET-4877]
This commit is contained in:
committed by
Aschepikov
parent
94954c1601
commit
abfc33002c
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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) %>
|
||||||
|
Reference in New Issue
Block a user