fix: 🐛 simplifying toolbar

This commit is contained in:
dharini committed 2021-10-18 12:11:55 -07:00
1 parent 116f86b51d
commit f4b3b4a205
3 files changed
+2 -23

No files matched your search

@@ -1,6 +1,3 @@
<div ...attributes class="rose-toolbar">
{{yield (hash
search=(component "rose/anonymous" class="rose-toolbar-search")
filter=(component "rose/anonymous" class="rose-toolbar-filter")
)}}
{{yield}}
</div>
@@ -9,9 +9,7 @@ import { action } from '@storybook/addon-actions';
A toolbar component that allows two distinct sections to be configured: search, filter
```htmlbars
<Rose::Toolbar as |toolbar|>
<toolbar.search />
<toolbar.filter />
<Rose::Toolbar as |toolbar| class="rose-toolbar">
</Rose::Toolbar>
```
@@ -19,8 +17,6 @@ A toolbar component that allows two distinct sections to be configured: search,
<Story name="Toolbar">{{
template: hbs`
<Rose::Toolbar as |toolbar|>
<toolbar.search>Search</toolbar.search>
<toolbar.filter>Filter</toolbar.filter>
</Rose::Toolbar>
`,
}}</Story>
@@ -16,18 +16,4 @@ module('Integration | Component | rose/toolbar', function (hooks) {
await render(hbs`<Rose::Toolbar id="toolbar"/>`);
assert.ok(find('#toolbar'));
});
test('it renders with filter', async function (assert) {
await render(hbs`<Rose::Toolbar as |toolbar| >
<toolbar.filter />
</Rose::Toolbar>`);
assert.ok(find('.rose-toolbar-filter'));
});
test('it renders with search', async function (assert) {
await render(hbs`<Rose::Toolbar as |toolbar| >
<toolbar.search />
</Rose::Toolbar>`);
assert.ok(find('.rose-toolbar-search'));
});
});