mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
🎨 use blue instead of yellow for warning alerts (#792)
closes https://github.com/TryGhost/Ghost/issues/8680
This commit is contained in:
parent
7a5d132e1a
commit
fe1c70f3c7
@ -17,7 +17,7 @@ export default Component.extend({
|
||||
typeMapping = {
|
||||
success: 'green',
|
||||
error: 'red',
|
||||
warn: 'yellow',
|
||||
warn: 'blue',
|
||||
info: 'blue'
|
||||
};
|
||||
|
||||
|
@ -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 () {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user