diff --git a/packages/mui-material/src/Pagination/Pagination.test.js b/packages/mui-material/src/Pagination/Pagination.test.js index 44d778114b3284..ea4b1f451a636f 100644 --- a/packages/mui-material/src/Pagination/Pagination.test.js +++ b/packages/mui-material/src/Pagination/Pagination.test.js @@ -33,7 +33,7 @@ describe('', () => { // previous, page 1 const [, page1] = getAllByRole('button'); - expect(page1).to.have.attribute('aria-current', 'true'); + expect(page1).to.have.attribute('aria-current', 'page'); // verifying no regression from previous bug where `page` wasn't intercepted expect(container.querySelector('[page]')).to.equal(null); }); diff --git a/packages/mui-material/src/usePagination/usePagination.js b/packages/mui-material/src/usePagination/usePagination.js index d76cb58e6be8e9..60f00c5ca9b022 100644 --- a/packages/mui-material/src/usePagination/usePagination.js +++ b/packages/mui-material/src/usePagination/usePagination.js @@ -124,7 +124,7 @@ export default function usePagination(props = {}) { page: item, selected: item === page, disabled, - 'aria-current': item === page ? 'true' : undefined, + 'aria-current': item === page ? 'page' : undefined, } : { onClick: (event) => {