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

Import Pagination Component #487

Merged
merged 12 commits into from
May 10, 2018
Merged

Conversation

emplums
Copy link
Contributor

@emplums emplums commented May 9, 2018

Fixes: #421
Adds pagination component into primer 🎉 I messed up the commit history in my previous PR so started a fresh branch and cherrypicked the correct commits :)

See #485 (comment) regarding updating some of the hard coded margin & padding styles... It might be best to save that work for a separate PR to avoid major visual changes to the component

Also see #485 (comment) in the previous PR... IMO it would still be worth it to create a new component instead of reusing the btn classes since the development process would be simplified a bit by using the pagination classes (no need to add extra classes to the page links, etc)

/cc @primer/ds-core

@emplums emplums requested a review from jonrohan May 9, 2018 22:35
@emplums emplums changed the title Task/pagination component Import Pagination Component May 9, 2018
cursor: pointer;
user-select: none;
background: $bg-white; // Reset default gradient backgrounds and colors
border: 1px solid $gray-200;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could use some more appropriate variables here:

border: $border-width $border-style $border-gray;

z-index: 2;
text-decoration: none;
background-color: darken($gray-100, 2%);
border-color: $gray-200;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also use $border-gray here.

z-index: 3;
color: $text-white;
background-color: $bg-blue;
border-color: $blue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And $border-blue here?

.disabled:hover {
color: $gray-300;
cursor: default;
background-color: $gray-000;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could use $bg-gray-light here.

<a class="next_page" rel="next" href="#url" aria-label="Next Page">Next</a>
</div>
</nav>
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need a <!-- %enddocs --> at the end of the docs section here. That's what we look for in the styleguide to pull out the relevant doc section.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done 👍

@@ -0,0 +1,33 @@
{
"version": "0.0.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will probably want to start the versioning at 1.0.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok!

@@ -22,6 +22,7 @@
@import "primer-forms/index.scss";
@import "primer-layout/index.scss";
@import "primer-navigation/index.scss";
@import "primer-pagination/index.scss";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does everyone feel about pagination in core vs product? I could go either way, but wanted to bring up the question. If it's not important for marketing then we can just keep it in product.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious about this one too - wasn't sure where to put Box Overlay either 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that Marketing users could use both Pagination and Box Overlay, but happy to defer to @sophshep.

@jonrohan jonrohan changed the base branch from dev to release-10.5.0 May 10, 2018 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants