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

Fix(Unable to add custom styles to PageItem Component) #6636

Merged
merged 4 commits into from Jun 23, 2023

Conversation

devmuhnnad
Copy link
Contributor

@devmuhnnad devmuhnnad commented Jun 21, 2023

This fixes #5950

When using Bootstrap Pagination, There is an incomplete API to allow adding custom styles to the <Component> inside the <PageItem>. there is no className or style prop that is passed to the to allow for custom styles to be applied, so The developer can't change the color of the <a> tag inside of the <PageItem> for example!

I have solved the issue by creating a new two props ( innerStyle and innerClassName ), they are passed to the <Component> inside of <PageItem>

Thanks.

PART OF GTC OPEN SOURCE INTIATIVE

src/PageItem.tsx Outdated Show resolved Hide resolved
@devmuhnnad
Copy link
Contributor Author

Great suggestion, it's done.

@kyletsang kyletsang merged commit cc8efc3 into react-bootstrap:master Jun 23, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to add custom styles to PageItem Component
2 participants