From fe1c70f3c7de6d366289fb11c81888b9b22e9158 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 20 Jul 2017 15:00:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20use=20blue=20instead=20of=20yell?= =?UTF-8?q?ow=20for=20warning=20alerts=20(#792)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes https://github.com/TryGhost/Ghost/issues/8680 --- ghost/admin/app/components/gh-alert.js | 2 +- ghost/admin/tests/acceptance/ghost-desktop-test.js | 4 ++-- ghost/admin/tests/integration/components/gh-alert-test.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ghost/admin/app/components/gh-alert.js b/ghost/admin/app/components/gh-alert.js index a1de2d2418..00d3aacbf4 100644 --- a/ghost/admin/app/components/gh-alert.js +++ b/ghost/admin/app/components/gh-alert.js @@ -17,7 +17,7 @@ export default Component.extend({ typeMapping = { success: 'green', error: 'red', - warn: 'yellow', + warn: 'blue', info: 'blue' }; diff --git a/ghost/admin/tests/acceptance/ghost-desktop-test.js b/ghost/admin/tests/acceptance/ghost-desktop-test.js index e18d723392..9c80ef2bc7 100644 --- a/ghost/admin/tests/acceptance/ghost-desktop-test.js +++ b/ghost/admin/tests/acceptance/ghost-desktop-test.js @@ -57,8 +57,8 @@ describe('Acceptance: Ghost Desktop', function() { await visit('/'); // has an alert with matching text - expect(find('.gh-alert-yellow').length, 'number of warning alerts').to.equal(1); - expect(find('.gh-alert-yellow').text().trim(), 'alert text').to.match(/Your version of Ghost Desktop needs to be manually updated/); + expect(find('.gh-alert-blue').length, 'number of warning alerts').to.equal(1); + expect(find('.gh-alert-blue').text().trim(), 'alert text').to.match(/Your version of Ghost Desktop needs to be manually updated/); }); it('doesn\'t display alert for working version', async function () { diff --git a/ghost/admin/tests/integration/components/gh-alert-test.js b/ghost/admin/tests/integration/components/gh-alert-test.js index b2373ad93a..b5d5f92ee0 100644 --- a/ghost/admin/tests/integration/components/gh-alert-test.js +++ b/ghost/admin/tests/integration/components/gh-alert-test.js @@ -33,7 +33,7 @@ describe('Integration: Component: gh-alert', function () { expect($alert.hasClass('gh-alert-red'), 'success class isn\'t red').to.be.true; this.set('message.type', 'warn'); - expect($alert.hasClass('gh-alert-yellow'), 'success class isn\'t yellow').to.be.true; + expect($alert.hasClass('gh-alert-blue'), 'success class isn\'t yellow').to.be.true; this.set('message.type', 'info'); expect($alert.hasClass('gh-alert-blue'), 'success class isn\'t blue').to.be.true;