Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight current page on pagination #5003

Closed
TCM5 opened this issue Jul 3, 2020 · 7 comments
Closed

Highlight current page on pagination #5003

TCM5 opened this issue Jul 3, 2020 · 7 comments

Comments

@TCM5
Copy link

TCM5 commented Jul 3, 2020

Is your feature request related to a problem? Please describe.
In the list pagination, the current page number is lacking on caption/focus when many pages are displayed. Sometimes, when too many numbers are dispalyed in pagination, it's hard to check the current page that the user it's in.

imagem

Describe the solution you'd like
Just like the core pagination style on Material-UI. They make the current page with a background color (like a badge component). This differenciates the current page from others, like this:

imagem

Describe alternatives you've considered
An alternative is to implement my own list, overriding the default pagination component. But I think this should be RA native, because it will take theme in consideration.

@fzaninotto
Copy link
Member

Nice! I didn't notice Material-ui had added this background color. It's a good idea.

@fzaninotto
Copy link
Member

Note: the material-ui Pagination component appeared in version 4.9 of the library.

@jdemangeon
Copy link
Contributor

This feature is always in the @material-ui/lab package. Should we wait for the @material-ui/core integration before include it @fzaninotto?

@fzaninotto
Copy link
Member

Yes, and that means waiting for [email protected]

@TCM5
Copy link
Author

TCM5 commented Oct 1, 2021

@fzaninotto MUI core v5 was released with a stable version. Will this upgrade be migrated to 4.0 milestone?

@palyvodaBoi
Copy link

@fzaninotto +1

@WiXSL
Copy link
Contributor

WiXSL commented Jan 28, 2022

This feature was added in #7120 and set to be released in v4.0.0-alpha.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants