missed a few spots where close-panel was used

This commit is contained in:
Jeff Atwood 2015-08-29 04:04:04 -07:00
parent 88a30fafdd
commit 5336677be7
2 changed files with 1 additions and 21 deletions

View File

@ -23,17 +23,7 @@
overflow: none; overflow: none;
padding: 0.5em 0.5em 0.5em 0.5em; padding: 0.5em 0.5em 0.5em 0.5em;
width: 300px; width: 300px;
.close-panel {
float: right;
color: dark-light-choose(scale-color($header_primary, $lightness: 50%), $header_primary);
font-size: 1.5em;
margin-right: -10px;
margin-top: 0.1em;
padding: 0 4 4 4px;
z-index: 9999;
}
.panel-header { .panel-header {
position: absolute; position: absolute;
right: 20px; right: 20px;

View File

@ -21,7 +21,6 @@ componentTest('as a dropdown', {
this.set('panelVisible', true); this.set('panelVisible', true);
andThen(() => { andThen(() => {
assert.ok(!exists('.menu-panel .close-panel'), "the close X is not shown");
assert.ok(!exists(".menu-panel.hidden"), "toggling visible makes it appear"); assert.ok(!exists(".menu-panel.hidden"), "toggling visible makes it appear");
}); });
@ -62,14 +61,5 @@ componentTest('as a slide-in', {
this.set('panelVisible', true); this.set('panelVisible', true);
}); });
andThen(() => {
assert.ok(exists('.menu-panel .close-panel'), "the close X is shown");
});
click('.close-panel');
andThen(() => {
assert.ok(exists(".menu-panel.hidden"), "clicking the close button closes it");
assert.equal(this.get('panelVisible'), false, 'it updates the bound variable');
});
} }
}); });