From ea055a209e3d375548bf14bfb0dafd929dde9517 Mon Sep 17 00:00:00 2001 From: Zoya Arif Date: Fri, 5 Aug 2016 12:12:58 -0700 Subject: [PATCH] Fixed aria role and added aria selected on row --- src/components/DetailsList/DetailsList.tsx | 70 +++++++++++----------- src/components/DetailsList/DetailsRow.tsx | 1 + 2 files changed, 36 insertions(+), 35 deletions(-) diff --git a/src/components/DetailsList/DetailsList.tsx b/src/components/DetailsList/DetailsList.tsx index 76532a4c8eb31..c852b05f1c618 100644 --- a/src/components/DetailsList/DetailsList.tsx +++ b/src/components/DetailsList/DetailsList.tsx @@ -228,43 +228,43 @@ export class DetailsList extends React.Component ) } - -
- (ev.which === getRTLSafeKeyCode(KeyCodes.right)) } - onActiveElementChanged={ this._onActiveRowChanged } - > - - { groups ? ( - - ) : ( - + (ev.which === getRTLSafeKeyCode(KeyCodes.right)) } + onActiveElementChanged={ this._onActiveRowChanged } + > + + { groups ? ( + this._onRenderCell(0, item, itemIndex) } - { ...additionalListProps } - ref='list' + onRenderCell={ this._onRenderCell } + selection={ selection } + selectionMode={ selectionMode } + dragDropEvents={ dragDropEvents } + dragDropHelper={ dragDropHelper } + eventsToRegister={ rowElementEventMap } + listProps={ additionalListProps } + ref='groups' /> - ) - } - - + ) : ( + this._onRenderCell(0, item, itemIndex) } + { ...additionalListProps } + ref='list' + /> + ) + } + + +
); diff --git a/src/components/DetailsList/DetailsRow.tsx b/src/components/DetailsList/DetailsRow.tsx index f325540c24568..e10c428eb2436 100644 --- a/src/components/DetailsList/DetailsRow.tsx +++ b/src/components/DetailsList/DetailsRow.tsx @@ -176,6 +176,7 @@ export class DetailsRow extends React.Component { (selectionMode !== SelectionMode.none) && (