Skip to content

Commit 0a2385d

Browse files
author
Sergey Shvets
committed
Merge remote-tracking branch 'origin/MAGETWO-55443' into MAGETWO-55814
2 parents db6b440 + d4913f5 commit 0a2385d

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

app/code/Magento/Ui/view/base/web/js/modal/modal-component.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ define([
1818
title: '',
1919
subTitle: '',
2020
options: {
21+
modalClass: '',
2122
title: '',
2223
subTitle: '',
2324
buttons: [],

app/code/Magento/Ui/view/base/web/templates/modal/modal-custom.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
*/
66
-->
77

8-
<aside class="modal-<%= data.type %> <%= data.modalClass %>
9-
<% if(data.responsive){ %><%= data.responsiveClass %><% } %>
10-
<% if(data.innerScroll){ %><%= data.innerScrollClass %><% } %>"
8+
<aside class="modal-<%- data.type %> <%- data.modalClass %>
9+
<% if(data.responsive){ %><%- data.responsiveClass %><% } %>
10+
<% if(data.innerScroll){ %><%- data.innerScrollClass %><% } %>"
1111
data-role="modal"
12-
data-type="<%= data.type %>"
12+
data-type="<%- data.type %>"
1313
tabindex="0">
1414
<div data-role="focusable-start" tabindex="0"></div>
1515
<div class="modal-inner-wrap"
@@ -31,7 +31,7 @@
3131
<footer class="modal-footer">
3232
<% _.each(data.buttons, function(button) { %>
3333
<button
34-
class="<%= button.class %>"
34+
class="<%- button.class %>"
3535
type="button"
3636
data-role="action"><span><%= button.text %></span></button>
3737
<% }); %>

app/code/Magento/Ui/view/base/web/templates/modal/modal-popup.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
-->
77

88
<aside
9-
class="modal-<%= data.type %> <%= data.modalClass %>
10-
<% if(data.responsive){ %><%= data.responsiveClass %><% } %>
11-
<% if(data.innerScroll){ %><%= data.innerScrollClass %><% } %>"
9+
class="modal-<%- data.type %> <%- data.modalClass %>
10+
<% if(data.responsive){ %><%- data.responsiveClass %><% } %>
11+
<% if(data.innerScroll){ %><%- data.innerScrollClass %><% } %>"
1212
data-role="modal"
13-
data-type="<%= data.type %>"
13+
data-type="<%- data.type %>"
1414
tabindex="0">
1515
<div data-role="focusable-start" tabindex="0"></div>
1616
<div class="modal-inner-wrap"
@@ -34,7 +34,7 @@
3434
<footer class="modal-footer">
3535
<% _.each(data.buttons, function(button) { %>
3636
<button
37-
class="<%= button.class %>"
37+
class="<%- button.class %>"
3838
type="button"
3939
data-role="action"><span><%= button.text %></span></button>
4040
<% }); %>

app/code/Magento/Ui/view/base/web/templates/modal/modal-slide.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
-->
77

88
<aside
9-
class="modal-<%= data.type %> <%= data.modalClass %>
10-
<% if(data.innerScroll){ %><%= data.innerScrollClass %><% } %>"
9+
class="modal-<%- data.type %> <%- data.modalClass %>
10+
<% if(data.innerScroll){ %><%- data.innerScrollClass %><% } %>"
1111
data-role="modal"
12-
data-type="<%= data.type %>"
12+
data-type="<%- data.type %>"
1313
tabindex="0">
1414
<div data-role="focusable-start" tabindex="0"></div>
1515
<div class="modal-inner-wrap"
@@ -38,7 +38,7 @@
3838
<div class="page-actions-buttons">
3939
<% _.each(data.buttons, function(button) { %>
4040
<button
41-
class="<%= button.class %>"
41+
class="<%- button.class %>"
4242
type="button"
4343
data-role="action"><span><%= button.text %></span>
4444
</button>

0 commit comments

Comments
 (0)