diff --git a/src/Pagination.tsx b/src/Pagination.tsx index dbc977d4..b285eb06 100644 --- a/src/Pagination.tsx +++ b/src/Pagination.tsx @@ -381,7 +381,11 @@ const Pagination: React.FC = (props) => { simplePager = (
  • {isReadOnly ? ( internalInputVal diff --git a/tests/simple.test.tsx b/tests/simple.test.tsx index bce7826e..4191ab39 100644 --- a/tests/simple.test.tsx +++ b/tests/simple.test.tsx @@ -305,4 +305,22 @@ describe('simple Pagination', () => { const { container } = render(); expect(container).toMatchSnapshot(); }); + + it('should apply semantic item styles to simplePager', () => { + const customClassName = 'custom-item-class'; + const customStyle = { backgroundColor: 'red' }; + + const { container } = render( + , + ); + + const simplePager = container.querySelector('.rc-pagination-simple-pager'); + expect(simplePager).toHaveClass(customClassName); + expect(simplePager).toHaveStyle({ 'background-color': 'red' }); + }); });