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

Logical positioning to the 'older' page link #903

Open
cara-tm opened this issue Oct 26, 2021 · 1 comment
Open

Logical positioning to the 'older' page link #903

cara-tm opened this issue Oct 26, 2021 · 1 comment
Assignees
Milestone

Comments

@cara-tm
Copy link

cara-tm commented Oct 26, 2021

Is your feature request related to a problem?

Nope. A cognitive enhancement.

What is the feature?

Currently, the lack of the second navigation link within the bottom of the pages places the first one on the left, which is positioned on the right when the other link appears. That situation can be a little confused.

Adding a class attribute to the old container tag allow rejecting always to the right the corresponding link:

                <txp:older rel="next" class="right">
                            <txp:text item="older" />
                        </txp:older>
                    </nav>
                </txp:evaluate>

And this line of CSS:

.paginator .right {
    margin-left: auto;
}
@philwareham philwareham self-assigned this Oct 26, 2021
@philwareham philwareham added this to the 4.9.0 milestone Dec 17, 2021
@philwareham
Copy link
Member

I think this would work and still make RTL languages display as intended (plus save adding an extra class):

.paginator [rel="next"] {
    margin-inline-start: auto;
}

I'll commit this to Textpattern dev so please test in due course.

philwareham added a commit that referenced this issue Feb 23, 2024
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