textpattern-default-theme icon indicating copy to clipboard operation
textpattern-default-theme copied to clipboard

Logical positioning to the 'older' page link

Open cara-tm opened this issue 4 years ago • 1 comments

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;
}

cara-tm avatar Oct 26 '21 04:10 cara-tm

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 avatar Feb 23 '24 16:02 philwareham