From 8a047250ff695c09207992c418743fa8d79ec381 Mon Sep 17 00:00:00 2001 From: Ava Wroten Date: Mon, 9 Mar 2020 18:53:56 -0500 Subject: [PATCH] Splattribute refactorings --- ember-ui/app/components/meal-list.hbs | 61 ++++++++++--------- .../components/sortable-group-accessible.hbs | 3 +- .../components/sortable-item-accessible.hbs | 2 +- 3 files changed, 35 insertions(+), 31 deletions(-) diff --git a/ember-ui/app/components/meal-list.hbs b/ember-ui/app/components/meal-list.hbs index 318c72d..78b0180 100644 --- a/ember-ui/app/components/meal-list.hbs +++ b/ember-ui/app/components/meal-list.hbs @@ -1,28 +1,33 @@ - - - {{#each this.sortedItems as |meal index|}} - - - - - - {{/each}} - - +{{#if this.sortedItems}} + + + {{#each this.sortedItems as |meal index|}} + + + + + + {{/each}} + + +{{/if}} diff --git a/ember-ui/app/components/sortable-group-accessible.hbs b/ember-ui/app/components/sortable-group-accessible.hbs index 0c1b74f..c2df08a 100644 --- a/ember-ui/app/components/sortable-group-accessible.hbs +++ b/ember-ui/app/components/sortable-group-accessible.hbs @@ -6,8 +6,7 @@ {{key-up this.handleArrowDown key='ArrowDown'}} {{key-down this.preventDefault key='ArrowUp'}} {{key-down this.preventDefault key='ArrowDown'}} - tabindex="0" - class="shadow-md bg-gray-200 outline-none border border-gray-400 focus:border-teal-400 focus:shadow-lg"> + ...attributes> {{yield this.groupHasFocus this.selectedIndex diff --git a/ember-ui/app/components/sortable-item-accessible.hbs b/ember-ui/app/components/sortable-item-accessible.hbs index 1e806bc..9d4fa4d 100644 --- a/ember-ui/app/components/sortable-item-accessible.hbs +++ b/ember-ui/app/components/sortable-item-accessible.hbs @@ -1,5 +1,5 @@ {{#let (and @groupHasFocus (eq @currentIndex @selectedIndex)) as |active|}} -
+
{{#if active}}