Replaces remaining {{category-chooser}} by {{category-select-box}}

To achieve replacement, this commit also adds support for:
- clearSelectionLabel which will allows to unselect any chosen category
- select-box inside a modal
- fixes minor css positioning issues

Note: {{category-chooser}} will be removed in the next weeks.
This commit is contained in:
Joffrey JAFFEUX
2017-08-30 17:04:17 +02:00
committed by GitHub
parent 85ff6b8083
commit 746c5927e1
20 changed files with 145 additions and 51 deletions

View File

@ -222,7 +222,7 @@ componentTest('persists filter state when expandind/collapsing', {
});
componentTest('supports options to limit size', {
template: '{{select-box width=50 maxCollectionHeight=20 content=content}}',
template: '{{select-box maxCollectionHeight=20 content=content}}',
beforeEach() {
this.set("content", [{ id: 1, text: "robin" }]);
@ -233,7 +233,6 @@ componentTest('supports options to limit size', {
andThen(() => {
assert.equal(find(".select-box-body").height(), 20, "it limits the height");
assert.equal(find(".select-box").width(), 50, "it limits the width");
});
}
});