diff --git a/common/static/common/templates/components/system-feedback.underscore b/common/static/common/templates/components/system-feedback.underscore index 9168abc9d5..fb8b32af22 100644 --- a/common/static/common/templates/components/system-feedback.underscore +++ b/common/static/common/templates/components/system-feedback.underscore @@ -1,22 +1,22 @@ -
wrapper-<%- type %>-<%- intent %> <% if(obj.shown) { %>is-shown<% } else { %>is-hiding<% } %> - <% if(_.contains(['help', 'mini'], intent)) { %>wrapper-<%= type %>-status<% } %>" - id="<%= type %>-<%= intent %>" + <% if(_.contains(['help', 'mini'], intent)) { %>wrapper-<%- type %>-status<% } %>" + id="<%- type %>-<%- intent %>" aria-hidden="<% if(obj.shown) { %>false<% } else { %>true<% } %>" - aria-labelledby="<%= type %>-<%= intent %>-title" + aria-labelledby="<%- type %>-<%- intent %>-title" tabindex="-1" - <% if (obj.message) { %>aria-describedby="<%= type %>-<%= intent %>-description" <% } %> + <% if (obj.message) { %>aria-describedby="<%- type %>-<%- intent %>-description" <% } %> <% if (obj.actions) { %>role="dialog"<% } %> > -
+
<% if(obj.icon) { %> <% var iconClass = {"warning": "warning", "confirmation": "check", "error": "warning", "announcement": "bullhorn", "step-required": "exclamation-circle", "help": "question", "mini": "cog"} %> - + <% } %>
-

<%- title %>

- <% if(obj.message) { %>

<%- message %>

<% } %> +

<%- title %>

+ <% if(obj.message) { %>

<%- message %>

<% } %>
<% if(obj.actions) { %> @@ -24,13 +24,13 @@
    <% if(actions.primary) { %> <% } %> <% if(actions.secondary) { _.each(actions.secondary, function(secondary) { %> <% }); } %> @@ -39,9 +39,9 @@ <% } %> <% if(obj.closeIcon) { %> - + - close <%= type %> + close <%- type %> <% } %>