Browse Source

Informer line-height, warning added

Artur Paikin 8 years ago
parent
commit
20dfc93828
2 changed files with 13 additions and 2 deletions
  1. 6 2
      src/plugins/Informer.js
  2. 7 0
      src/scss/_informer.scss

+ 6 - 2
src/plugins/Informer.js

@@ -23,10 +23,14 @@ module.exports = class Informer extends Plugin {
           text: '#fff',
           bg: '#000'
         },
-        error: {
+        warning: {
           text: '#fff',
           bg: '#F6A623'
         },
+        error: {
+          text: '#fff',
+          bg: '#e74c3c'
+        },
         success: {
           text: '#fff',
           bg: '#7ac824'
@@ -82,7 +86,7 @@ module.exports = class Informer extends Plugin {
     const style = `background-color: ${this.opts.typeColors[type].bg}; color: ${this.opts.typeColors[type].text};`
 
     // @TODO add aria-live for screen-readers
-    return html`<div class="UppyInformer" style="${style}" aria-hidden="${isHidden}">
+    return html`<div class="Uppy UppyTheme--default UppyInformer" style="${style}" aria-hidden="${isHidden}">
       <p>${msg}</p>
     </div>`
   }

+ 7 - 0
src/scss/_informer.scss

@@ -37,4 +37,11 @@
 .UppyInformer p {
   margin: 0;
   padding: 0;
+  height: 30px;
+  line-height: 30px;
+
+  .UppyDashboard--wide & {
+    height: 40px;
+    line-height: 40px;
+  }
 }