diff --git a/components/data-table/__docs__/__snapshots__/storybook-stories.storyshot b/components/data-table/__docs__/__snapshots__/storybook-stories.storyshot index 449f7c6b39..d7d4fd94c1 100644 --- a/components/data-table/__docs__/__snapshots__/storybook-stories.storyshot +++ b/components/data-table/__docs__/__snapshots__/storybook-stories.storyshot @@ -1042,962 +1042,1375 @@ exports[`DOM snapshots SLDSDataTable Advanced Single Select (Fixed Header) 1`] = className="slds-p-around_medium" >
- - - +
- - - - - Account Name - - - - - + - + + + + + + + + + + + + - + - - - - + + + + + + + - - - - - - - - - - - + + - - - - + - - - - - - + + - + + - - - - - - + + + + - - - - - - + - + - - -
-
- Choose a row to select -
-
- - - sort this column - - - - Name - - - - - - - asc - - - - +
- - - Close Date - - - - +
+ Choose a row to select +
+ +
- - Stage - - - - - - sort this column - - - + + sort this column + + + + Name + + + + + + + asc + + + + + + + Account Name + + +
+ + + Account Name + + +
+
+ + + Close Date + + +
+ + + Close Date + + +
+
+ + + Stage + + +
+ + + Stage + + +
+
+ + + sort this column + + + + Confidence + + + + + + + + + + + Amount + + +
+ + + Amount + + +
+
+ + + Contact + + +
+ + + Contact + + +
+
+
+ + actions + +
+
+
+ + actions + +
+
+
- Confidence - - - - - - - - - + + + + Select this row 1 + + + + + - - Amount - - - - + + Acme - 1,200 Widgets + + + - - Contact - - - - -
- + Acme +
+ +
- actions - - - -
- + 4/10/15 + + +
+ Value Proposition +
+
+
+ 70% +
+
+
+ $25,000,000 +
+
+ + +
+ +
+
-
- +
- Acme - 1,200 Widgets - - - -
- Acme -
-
-
- 4/10/15 -
-
-
- Value Proposition -
-
-
- 70% -
-
-
- $25,000,000 -
-
- + + +
+ Acme +
+
+
+ 1/31/15 +
+
- jrogers@acme.com - - - -
- -
-
- - + - - - - - Acme - 200 Widgets - - - - -
- Acme -
-
-
- 1/31/15 -
-
-
- Prospecting -
-
-
- 30% -
-
-
- $5,000,000 -
-
- + + + - bob@acme.com - - - -
+ +
+
- - + - +
+ salesforce.com +
+
+
+ 1/31/15 3:45PM +
+
+
+ Id. Decision Makers +
+
+
- Select this row 3 - - - -
- - salesforce.com - 1,000 Widgets - - - - -
- salesforce.com -
-
-
- 1/31/15 3:45PM -
-
-
- Id. Decision Makers -
-
-
- 60% -
-
-
- $25,000 -
-
- + - nathan@salesforce.com - - - - + - - - Actions - - - -
+ +
+ + + + + + `; diff --git a/components/data-table/__examples__/advanced-single-select-fixed-header.jsx b/components/data-table/__examples__/advanced-single-select-fixed-header.jsx index c26ef74e68..87babc5b0a 100644 --- a/components/data-table/__examples__/advanced-single-select-fixed-header.jsx +++ b/components/data-table/__examples__/advanced-single-select-fixed-header.jsx @@ -117,6 +117,7 @@ class Example extends React.Component { selectRow: 'Select this row', }} fixedLayout + fixedHeader keyboardNavigation items={this.state.items} id="DataTableExample-SingleRequiredSelect" diff --git a/components/data-table/private/head.jsx b/components/data-table/private/head.jsx index 1171c20a12..b1b970a472 100644 --- a/components/data-table/private/head.jsx +++ b/components/data-table/private/head.jsx @@ -143,7 +143,7 @@ class DataTableHead extends React.Component { let render = null; if (canSelectRows === 'radio') { - render = ( + render = !ariaHidden ? (
{this.props.assistiveText.selectRowGroup}
- ); + ) : null; } else if (canSelectRows === true || canSelectRows === 'checkbox') { render = (