mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
missed a few spots where close-panel was used
This commit is contained in:
parent
88a30fafdd
commit
5336677be7
@ -23,17 +23,7 @@
|
||||
overflow: none;
|
||||
padding: 0.5em 0.5em 0.5em 0.5em;
|
||||
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 {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
|
@ -21,7 +21,6 @@ componentTest('as a dropdown', {
|
||||
|
||||
this.set('panelVisible', true);
|
||||
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");
|
||||
});
|
||||
|
||||
@ -62,14 +61,5 @@ componentTest('as a slide-in', {
|
||||
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');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user