You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement pagination web component on Trending page (#12035)
* refactor: Rename pagination event to ol-pagination-change
Rename custom event from update:page to ol-pagination-change with
structured detail object. Add self-update of currentPage with
cancelable support.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs: Update design template for ol-pagination-change event
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs: Enhance OlPagination documentation and examples
Updated the OlPagination component's documentation to clarify the behavior of the baseUrl property and its fallback to the current page URL. Improved examples to demonstrate analytics tracking and the handling of the ol-pagination-change event. Adjusted text for better clarity on navigation options.
* feat: Introduce OlPagination component and update trending template
Added a new OlPagination component for improved pagination functionality. Updated the trending template to utilize the new component, replacing the previous pager implementation. Enhanced CSS for pagination styling and adjusted mybooks list margin for better layout.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update openlibrary/templates/trending.html
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Drini Cami <cdrini@gmail.com>
<p>$:_("When a page is clicked, the component fires an %(event_name)s event with the page number in %(event_detail)s.", event_name="<code>ol-pagination-change</code>", event_detail="<code>event.detail.page</code>")</p>
<p>$:_("When a page is clicked, the component fires an %(event_name)s event with the page number in %(event_detail)s. Use this to send analytics before the browser navigates.", event_name="<code>ol-pagination-change</code>", event_detail="<code>event.detail.page</code>")</p>
0 commit comments