Merge pull request #379 from edx/peter-fogg/fix-notification-saving
Fix saving notification CSS.
This commit is contained in:
@@ -44,7 +44,7 @@ def i_save_a_new_section_release_date(_step):
|
||||
|
||||
@step('I see a "saving" notification')
|
||||
def i_see_a_saving_notification(step):
|
||||
saving_css = '.wrapper-notification-saving'
|
||||
saving_css = '.wrapper-notification-mini'
|
||||
assert world.is_css_present(saving_css)
|
||||
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.wrapper-notification-saving {
|
||||
&.wrapper-notification-mini {
|
||||
box-shadow: 0 -1px 3px $shadow, inset 0 3px 1px $pink;
|
||||
}
|
||||
|
||||
@@ -434,7 +434,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.saving {
|
||||
&.mini {
|
||||
|
||||
[class^="icon"] {
|
||||
@include animation(rotateCW $tmg-s3 linear infinite);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="wrapper wrapper-<%= type %> wrapper-<%= type %>-<%= intent %>
|
||||
<% if(obj.shown) { %>is-shown<% } else { %>is-hiding<% } %>
|
||||
<% if(_.contains(['help', 'saving'], intent)) { %>wrapper-<%= type %>-status<% } %>"
|
||||
<% if(_.contains(['help', 'mini'], intent)) { %>wrapper-<%= type %>-status<% } %>"
|
||||
id="<%= type %>-<%= intent %>"
|
||||
aria-hidden="<% if(obj.shown) { %>false<% } else { %>true<% } %>"
|
||||
aria-labelledby="<%= type %>-<%= intent %>-title"
|
||||
@@ -9,7 +9,7 @@
|
||||
>
|
||||
<div class="<%= type %> <%= intent %> <% if(obj.actions) { %>has-actions<% } %>">
|
||||
<% if(obj.icon) { %>
|
||||
<% var iconClass = {"warning": "warning-sign", "confirmation": "ok", "error": "warning-sign", "announcement": "bullhorn", "step-required": "exclamation-sign", "help": "question-sign", "saving": "cog"} %>
|
||||
<% var iconClass = {"warning": "warning-sign", "confirmation": "ok", "error": "warning-sign", "announcement": "bullhorn", "step-required": "exclamation-sign", "help": "question-sign", "mini": "cog"} %>
|
||||
<i class="icon-<%= iconClass[intent] %>"></i>
|
||||
<% } %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user