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

Use Bootstrap .icon-link in shared pagination #4706

Merged
merged 1 commit into from Apr 23, 2024

Conversation

AntonKhorev
Copy link
Contributor

There is a Bootstrap class for displaying icons next to links. Shared pagination has "<"/">" icons which could be attached using this class. But initially I didn't use it because it's named a bit deceptively.

When we're on the first page, there's no link to the previous page yet we still want to attach the icon to the text in the disabled page item. Will .icon-link work in this case, without a link? Yes it will, Bootstrap doesn't check if .icon-link is used on a link or on anything else.

@AntonKhorev AntonKhorev marked this pull request as draft April 16, 2024 15:17
@tomhughes
Copy link
Member

Looks good to me, thanks.

@tomhughes tomhughes merged commit c62b8b2 into openstreetmap:master Apr 23, 2024
20 checks passed
@AntonKhorev AntonKhorev deleted the pagination-icon-link branch April 24, 2024 00: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

Successfully merging this pull request may close these issues.

None yet

2 participants