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

Make default pagination Twitter Bootstrap compatible #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Make default pagination Twitter Bootstrap compatible #34

wants to merge 1 commit into from

Conversation

danielkestler
Copy link
Contributor

Warning, opinionated ;-) But default "Flowpack.Listable:List" also is. Could also be put into a separate "Flowpack.Listable:BootstrapPagination" prototype.

@@ -31,22 +33,25 @@ prototype(Flowpack.Listable:Pagination) < prototype(Neos.Fusion:Component) {
itemRenderer = Neos.Fusion:Case {
separator {
condition = ${i == '...'}
renderer = ${'<li class="' + props.itemClass + '">' + i + '</li>'}
renderer = ${'<li class="' + props.itemClass + '"><a class="' + props.linkClass + '">' + i + '</a></li>'}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, missed this one as well.
Is it valid to have tag with no href?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is valid without href, yes (since HTML5). But as the world is moving from Bootstrap to Tailwind, we might have to rethink how we render the list items (looking into the direction of Fusion-components).

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.

2 participants