@madie/madie-design-system 1.2.101 → 1.2.102

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.
Files changed (37) hide show
  1. package/components/Pagination/index.jsx +3 -8
  2. package/dist/browser.js +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/react/index.js +4 -4
  5. package/dist/react/index.js.LICENSE.txt +3 -1
  6. package/dist/react/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/test/components/Pagination.test.js +56 -0
  9. package/storybook-static/favicon.svg +0 -1
  10. package/storybook-static/index.html +0 -169
  11. package/storybook-static/index.json +0 -1
  12. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  13. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  14. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  15. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  16. package/storybook-static/project.json +0 -1
  17. package/storybook-static/sb-addons/a11y-5/manager-bundle.js +0 -220
  18. package/storybook-static/sb-addons/actions-1/manager-bundle.js +0 -3
  19. package/storybook-static/sb-addons/backgrounds-7/manager-bundle.js +0 -12
  20. package/storybook-static/sb-addons/docs-6/manager-bundle.js +0 -245
  21. package/storybook-static/sb-addons/knobs-4/register-bundle.js +0 -23
  22. package/storybook-static/sb-addons/knobs-4/register-bundle.js.LEGAL.txt +0 -11
  23. package/storybook-static/sb-addons/links-2/manager-bundle.js +0 -3
  24. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  25. package/storybook-static/sb-addons/storysource-3/manager-bundle.js +0 -3
  26. package/storybook-static/sb-addons/viewport-8/manager-bundle.js +0 -3
  27. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  28. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  29. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  30. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  31. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  32. package/storybook-static/sb-manager/globals-module-info.js +0 -1052
  33. package/storybook-static/sb-manager/globals-runtime.js +0 -41775
  34. package/storybook-static/sb-manager/globals.js +0 -48
  35. package/storybook-static/sb-manager/runtime.js +0 -12048
  36. package/storybook-static/sb-preview/globals.js +0 -33
  37. package/storybook-static/sb-preview/runtime.js +0 -7745
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
- import { visuallyHidden } from "@mui/utils";
4
3
 
5
4
  import {
6
5
  Pagination as PaginationComponent,
@@ -59,13 +58,10 @@ const Pagination = ({
59
58
  return (
60
59
  <Container>
61
60
  <Row>
62
- {/*this span is only for screen reader*/}
63
- <span id="items-per-page" style={visuallyHidden}>
64
- Items per page {limit}.
65
- </span>
66
61
  <Typography
67
62
  fontSize={14}
68
63
  fontFamily="Rubik"
64
+ id="items-per-page"
69
65
  sx={{
70
66
  color: "#333333",
71
67
  }}
@@ -89,13 +85,12 @@ const Pagination = ({
89
85
  },
90
86
  }}
91
87
  id="pagination-limit-select"
88
+ labelId="items-per-page"
92
89
  value={limit}
93
90
  label={null}
94
91
  onChange={handleLimitChange}
95
92
  inputProps={{
96
- "aria-labelledby": "items-per-page",
97
- "aria-describedby":
98
- "items-per-page offset-of-total-items",
93
+ "aria-describedby": "offset-of-total-items",
99
94
  }}
100
95
  >
101
96
  {limitOptions.map((val) => (