-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pagination): enable responsive layout (#7722)
**Related Issue:** #6687 ## Summary - Makes pagination responsive - Uses resize observer - Makes ellipsis and page styles equivalent - Refactor page rendering logic to count ellipsis as well as pages. Next/previous buttons are not counted because they are always present. - Exports Breakpoints interface from helper - Modifies some e2e tests - Adds screenshot tests These are the proposed amount of items per breakpoint. (item numbers are pages + ellipsis) ```ts const maxItemBreakpoints = { large: 11, medium: 9, small: 7, xsmall: 5, }; ```
- Loading branch information
Showing
7 changed files
with
287 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.