Commit b7eb287a by Peter Fogg

Merge pull request #379 from edx/peter-fogg/fix-notification-saving

Fix saving notification CSS.
parents d6edbd5e 871ab87b
...@@ -44,7 +44,7 @@ def i_save_a_new_section_release_date(_step): ...@@ -44,7 +44,7 @@ def i_save_a_new_section_release_date(_step):
@step('I see a "saving" notification') @step('I see a "saving" notification')
def i_see_a_saving_notification(step): def i_see_a_saving_notification(step):
saving_css = '.wrapper-notification-saving' saving_css = '.wrapper-notification-mini'
assert world.is_css_present(saving_css) assert world.is_css_present(saving_css)
......
...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
} }
} }
&.wrapper-notification-saving { &.wrapper-notification-mini {
box-shadow: 0 -1px 3px $shadow, inset 0 3px 1px $pink; box-shadow: 0 -1px 3px $shadow, inset 0 3px 1px $pink;
} }
...@@ -434,7 +434,7 @@ ...@@ -434,7 +434,7 @@
} }
} }
&.saving { &.mini {
[class^="icon"] { [class^="icon"] {
@include animation(rotateCW $tmg-s3 linear infinite); @include animation(rotateCW $tmg-s3 linear infinite);
......
<div class="wrapper wrapper-<%= type %> wrapper-<%= type %>-<%= intent %> <div class="wrapper wrapper-<%= type %> wrapper-<%= type %>-<%= intent %>
<% if(obj.shown) { %>is-shown<% } else { %>is-hiding<% } %> <% 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 %>" id="<%= type %>-<%= intent %>"
aria-hidden="<% if(obj.shown) { %>false<% } else { %>true<% } %>" aria-hidden="<% if(obj.shown) { %>false<% } else { %>true<% } %>"
aria-labelledby="<%= type %>-<%= intent %>-title" aria-labelledby="<%= type %>-<%= intent %>-title"
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
> >
<div class="<%= type %> <%= intent %> <% if(obj.actions) { %>has-actions<% } %>"> <div class="<%= type %> <%= intent %> <% if(obj.actions) { %>has-actions<% } %>">
<% if(obj.icon) { %> <% 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> <i class="icon-<%= iconClass[intent] %>"></i>
<% } %> <% } %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment