feat: 🎸 add initial color theme toggle UX

This commit is contained in:
Randall Morey committed 2020-11-04 13:51:37 -05:00
1 parent 5c1f79f98d
commit ef96369392
9 files changed
+98 -4

No files matched your search

@@ -52,9 +52,15 @@ module('Integration | Component | rose/form/radio/group', function (hooks) {
assert.equal(findAll('[type="radio"]')[1].checked, false);
});
test('it reflects active radiofield value in @selectedValue', async function (assert) {
test('it reflects active radiofield value in @selectedValue and triggers a @changed function', async function (assert) {
assert.expect(5);
this.changed = (value) => assert.ok(value);
await render(hbs`
<Rose::Form::Radio::Group @name="bird" @selectedValue={{this.selectedValue}} as |radioGroup|>
<Rose::Form::Radio::Group
@name="bird"
@selectedValue={{this.selectedValue}}
@changed={{this.changed}}
as |radioGroup|>
<radioGroup.radio
@name="bird"
@label="Pegion"