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

Pagination #62

Open
deenaedw opened this issue Jan 30, 2017 · 0 comments
Open

Pagination #62

deenaedw opened this issue Jan 30, 2017 · 0 comments
Assignees

Comments

@deenaedw
Copy link
Contributor

deenaedw commented Jan 30, 2017

Pagination preview:

screen shot 2017-01-30 at 17 43 18

Hover and focus states:

screen shot 2017-04-10 at 17 13 55


Rules:

  • Pagination is centrally aligned, with a top margin of 30px.
  • If the user is on the first page of table results, the back button is disabled. If they are on the last page of table results, next is disabled.
  • The current page of results has an active state applied to it.
  • If ≤ 7 pages, no need for truncating the pagination (adding "...").
  • If a page ≥ 5 is selected, the first page should be available to the left and last page should be available to the right. The first and last page should always be visible.
  • An ellipses (...) is shown between non-consecutive pages, using the disabled state style, but the ellipses itself has a 100% opacity, as opposed to 10%.

CSS:

/* Pagination */
border-radius: 5px;
background: $white;
border: 1px solid $gray300;
color: $weworkblack;
height: 38px;
padding: 0 20px; /* on each toggle option */

/* Numerical (and …) option */
padding: 0 15px;

/* Hover */
background-color: rgba(0, 0, 0, 0.02);

/* Focus */
background-color: rgba(0, 0, 0, 0.05);

/* Disabled option */
(same as disabled state for buttons)

/* Null (“...”) */
background: none;

/* Active */
(same as primary button style)

Pagination (on mobile):

screen shot 2017-04-10 at 17 14 42

(each tab is ⅓ width of space available to it)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants