@bento-core/table 1.0.1-CDS.4 → 1.0.1-CDS.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,7 +16,11 @@ const CheckboxView = _ref => {
16
16
  return /*#__PURE__*/_react.default.createElement(_core.TableCell, {
17
17
  padding: "checkbox"
18
18
  }, /*#__PURE__*/_react.default.createElement(_core.FormControlLabel, {
19
- control: /*#__PURE__*/_react.default.createElement(_core.Checkbox, {
19
+ control: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
20
+ style: {
21
+ display: 'none'
22
+ }
23
+ }, "select all checkbox"), /*#__PURE__*/_react.default.createElement(_core.Checkbox, {
20
24
  color: "primary",
21
25
  indeterminate: includeSelectedIds,
22
26
  checked: includeSelectedIds,
@@ -24,7 +28,7 @@ const CheckboxView = _ref => {
24
28
  inputProps: {
25
29
  'aria-label': 'select all checkbox'
26
30
  }
27
- })
31
+ }))
28
32
  }));
29
33
  };
30
34
  var _default = CheckboxView;
@@ -60,9 +60,13 @@ const CustomPagination = _ref => {
60
60
  page: page,
61
61
  onPageChange: onPageChange,
62
62
  onRowsPerPageChange: onRowsPerPageChange,
63
+ labelRowsPerPage: /*#__PURE__*/_react.default.createElement("span", {
64
+ id: "rows-per-page-label"
65
+ }, "Rows per page:"),
63
66
  SelectProps: {
64
67
  inputProps: {
65
- 'aria-label': 'rows per page dropdown selector'
68
+ 'aria-label': 'rows per page dropdown selector',
69
+ 'aria-labelledby': 'rows-per-page-label'
66
70
  }
67
71
  }
68
72
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/table",
3
- "version": "1.0.1-CDS.4",
3
+ "version": "1.0.1-CDS.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -27,5 +27,5 @@
27
27
  },
28
28
  "author": "CTOS Bento Team",
29
29
  "license": "ISC",
30
- "gitHead": "b1027f1015f235f2e7eabde605cc18f5b893a193"
30
+ "gitHead": "0cdcda5c7486dfebbe00c15140d1a67b3c867423"
31
31
  }
@@ -13,13 +13,16 @@ const CheckboxView = ({
13
13
  <TableCell padding="checkbox">
14
14
  <FormControlLabel
15
15
  control={(
16
- <Checkbox
17
- color="primary"
18
- indeterminate={includeSelectedIds}
19
- checked={includeSelectedIds}
20
- onChange={(event) => toggleSelectAll(event, Ids, includeSelectedIds)}
21
- inputProps={{ 'aria-label': 'select all checkbox' }}
22
- />
16
+ <>
17
+ <span style={{ display: 'none' }}>select all checkbox</span>
18
+ <Checkbox
19
+ color="primary"
20
+ indeterminate={includeSelectedIds}
21
+ checked={includeSelectedIds}
22
+ onChange={(event) => toggleSelectAll(event, Ids, includeSelectedIds)}
23
+ inputProps={{ 'aria-label': 'select all checkbox' }}
24
+ />
25
+ </>
23
26
  )}
24
27
  />
25
28
  </TableCell>
@@ -50,7 +50,8 @@ const CustomPagination = ({
50
50
  page={page}
51
51
  onPageChange={onPageChange}
52
52
  onRowsPerPageChange={onRowsPerPageChange}
53
- SelectProps={{ inputProps: { 'aria-label': 'rows per page dropdown selector' } }}
53
+ labelRowsPerPage={<span id="rows-per-page-label">Rows per page:</span>}
54
+ SelectProps={{ inputProps: { 'aria-label': 'rows per page dropdown selector', 'aria-labelledby': 'rows-per-page-label' } }}
54
55
  />
55
56
  </ThemeProvider>
56
57
  );