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

page[Link]ClassName shoud not be applied on the active link #474

Open
vincentwinkel opened this issue Mar 4, 2023 · 2 comments
Open

page[Link]ClassName shoud not be applied on the active link #474

vincentwinkel opened this issue Mar 4, 2023 · 2 comments

Comments

@vincentwinkel
Copy link

The properties page[Link]ClassName should be used only for the "default" links.
The properties active[Link]ClassName only should be used for the "active" link.

My following config doesn't work with Tailwind, causing some conficts on the active link:

        pageLinkClassName="btn btn-gray !rounded-none"
        activeLinkClassName="btn-primary"

Result:

<a rel="canonical" role="button" class="btn btn-gray !rounded-none btn-primary" tabindex="-1" aria-label="Page 1 is your current page" aria-current="page">1</a>
@Noothan-am
Copy link

hi @vincentwinkel , I wanted to contribute to this issue can you give me some more information?

@vincentwinkel
Copy link
Author

Which kind of info do you need?

pageLinkClassName="page-link"
activeLinkClassName="active-link"

should render on the active link:

<a ... class="active-link">1</a>

instead of:

<a ... class="page-link active-link">1</a>

(if wewant both class, then wecan set activeLinkClassName="page-link active-link")

If page-link is defined after active-link in the css, then it overrides it,as shown here (we don't see the red link):
Screenshot 2023-04-30 at 19 35 40

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

No branches or pull requests

2 participants