@bento-core/table 1.0.0-c3dc.24 → 1.0.0-c3dc.26
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.
|
@@ -75,7 +75,9 @@ const CustomPagination = _ref => {
|
|
|
75
75
|
overrides: _objectSpread(_objectSpread({}, defaultTheme.overrides), customTheme)
|
|
76
76
|
})
|
|
77
77
|
}, /*#__PURE__*/_react.default.createElement(_core.TablePagination, {
|
|
78
|
-
labelRowsPerPage: "
|
|
78
|
+
labelRowsPerPage: /*#__PURE__*/_react.default.createElement("span", {
|
|
79
|
+
id: "rows-per-page-label"
|
|
80
|
+
}, "Rows per page:"),
|
|
79
81
|
rowsPerPageOptions: rowsPerPageOptions,
|
|
80
82
|
component: "div",
|
|
81
83
|
count: count,
|
|
@@ -86,7 +88,11 @@ const CustomPagination = _ref => {
|
|
|
86
88
|
SelectProps: {
|
|
87
89
|
IconComponent: _icons.ArrowDropDown,
|
|
88
90
|
inputProps: {
|
|
89
|
-
'aria-label': 'Selection dropdown for displaying the number of results per page'
|
|
91
|
+
'aria-label': 'Selection dropdown for displaying the number of results per page',
|
|
92
|
+
'aria-labelledby': 'rows-per-page-label',
|
|
93
|
+
style: {
|
|
94
|
+
visibility: 'hidden'
|
|
95
|
+
}
|
|
90
96
|
}
|
|
91
97
|
},
|
|
92
98
|
nextIconButtonProps: {
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ const CustomPagination = ({
|
|
|
70
70
|
theme={createMuiTheme({ overrides: { ...defaultTheme.overrides, ...customTheme } })}
|
|
71
71
|
>
|
|
72
72
|
<TablePagination
|
|
73
|
-
labelRowsPerPage="
|
|
73
|
+
labelRowsPerPage={<span id="rows-per-page-label">Rows per page:</span>}
|
|
74
74
|
rowsPerPageOptions={rowsPerPageOptions}
|
|
75
75
|
component="div"
|
|
76
76
|
count={count}
|
|
@@ -80,7 +80,13 @@ const CustomPagination = ({
|
|
|
80
80
|
onRowsPerPageChange={onRowsPerPageChange}
|
|
81
81
|
SelectProps={{
|
|
82
82
|
IconComponent: ArrowDropDown,
|
|
83
|
-
inputProps: {
|
|
83
|
+
inputProps: {
|
|
84
|
+
'aria-label': 'Selection dropdown for displaying the number of results per page',
|
|
85
|
+
'aria-labelledby': 'rows-per-page-label',
|
|
86
|
+
style: {
|
|
87
|
+
visibility: 'hidden',
|
|
88
|
+
},
|
|
89
|
+
},
|
|
84
90
|
}}
|
|
85
91
|
nextIconButtonProps={{
|
|
86
92
|
'aria-label': 'Next page',
|