Skip to content

Upgrade gitlab-ui and migrate gl-pagination

Paul Gascou-Vaillancourt requested to merge 62097-update-gl-pagination into master

What does this MR do?

gitlab-ui v4.0.0 was released recently and contains some breaking changes in the GlPagination component.

This MR updates the pagination_links component, that uses GlPagination under the hood, to reflect those breaking changes.

Specifically:

  • firstText and lastText props have been removed since these pagination items now show the page number instead of text
  • Added internationalized props labelFirstPage, labelPrevPage, labelNextPage and labelLastPage that are used for accessibility
  • The change prop has been replaced by an input event listener
  • The page prop has been renamed to value
  • Tests have been updated accordingly

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Closes #62097 (closed)

Edited by Paul Gascou-Vaillancourt

Merge request reports