Skip to content

Commit

Permalink
feat(sortable): add aria attributes (#4163)
Browse files Browse the repository at this point in the history
Closes #4152
  • Loading branch information
tarusin authored and valorkin committed May 2, 2018
1 parent a3820ab commit 00a331a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sortable/sortable.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ import { DraggableItemService } from './draggable-item.service';
(dragend)="resetActiveItem($event)"
(dragover)="onItemDragover($event, i)"
(dragenter)="cancelEvent($event)"
aria-dropeffect="move"
[attr.aria-grabbed]="i === activeItem"
><ng-template [ngTemplateOutlet]="itemTemplate || defItemTemplate"
[ngTemplateOutletContext]="{item:item, index: i}"></ng-template></div>
</div>
Expand All @@ -56,7 +58,6 @@ import { DraggableItemService } from './draggable-item.service';
/* tslint:enable */
export class SortableComponent implements ControlValueAccessor {
private static globalZoneIndex = 0;

/** field name if input array consists of objects */
@Input() fieldName: string;

Expand Down

0 comments on commit 00a331a

Please sign in to comment.