-
Notifications
You must be signed in to change notification settings - Fork 503
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
Allow to set position for the pagination component #332
Conversation
Hey @am, this is great! It seems like this will resolve #298. We also have a feature request for moving dots above the slides (#313). The implementation would be very similar to this. Would you be interested in making the modifications to include this functionality? If not, totally ok, just thought it would be a cool update |
Hi @quinnlangille , thanks for the heads-up. Matter of fact I got to start working on this one after seeing the #313 issue. I was misled by the issue since I thought the OP meant to place the pagination overlaying the image, only then, after reading carefully the issue I realized that it was a different request. Since overlaying the pagination was what I needed I went for it first. I think this could be tackled by two different PR's. I do see the relation at implementation level, but from a user/configuration level splitting is preferred:
Anyway, I can start working on the position feature. What are your thoughts? Two PR's or do you prefer to have a single one? |
On the implementation level, I was thinking of having one prop that takes a value for all three
What do you think? |
@quinnlangille I like it! Trying to clarify, on #313 there are 3 options: In any case, I would give the following options to be able to cover the entire
|
8e6008b
to
6a8cd38
Compare
@quinnlangille I've pushed another commit that does what I've described. It's open to discussion, please let me know your thoughts. |
This is really slick. I like it. I agree with @am about having duplicated pagination. The original issue #313 had was the pagination being pushed below the fold so I think this will address this specific issue by having option to set pagination to the top so it'll be above the fold. However, I'm kind of reluctant to add duplicated pagination as well. Perhaps enabling navigation instead is what we can suggest the OP to do. |
Yeah I agree @am @josephting, we definitely don't want the duplicated pagination. Atleast, not as a part of this feature! I'll pull and test the changes in the morning, but gave a quick look and code looks good - nice work! |
docs/source/api/index.md
Outdated
@@ -221,6 +221,13 @@ The fill color of pagination dots. Any valid CSS color is accepted. | |||
* **Type**: `String` | |||
* **Default**: `#efefef` | |||
|
|||
### paginationPosition | |||
|
|||
The position of pagination dots. Possible values are 'top', 'top-overlay', 'bottom-overlay'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little nitpick but "bottom" should be a possible value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird, the reply feature doesn't reply to the message but adds a comment in the PR. Anyway, it's not a big deal. I know it's a default, I just personally like to add all the cases for completeness 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, one thing I will mention is that you are missing the docs in the README.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ashleysimpson thanks for the feedback! It was my first attempt to reply using email (and probably my last seeing the limitations it has).
So regarding your comments, to be honest, I have no opinion about that and I prefer to do what best matches the project. I'll be adding a commit ASAP.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! And thanks for the contribution 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Np. I've added a commit that should cover your feedback. Please let me know if something is missing.
Thank you
It's the default, not setting any value will default to bottom.
…On Tue, Dec 4, 2018, 8:01 PM Ashley Simpson ***@***.*** wrote:
***@***.**** commented on this pull request.
------------------------------
In docs/source/api/index.md
<#332 (comment)>:
> @@ -221,6 +221,13 @@ The fill color of pagination dots. Any valid CSS color is accepted.
* **Type**: `String`
* **Default**: `#efefef`
+### paginationPosition
+
+The position of pagination dots. Possible values are 'top', 'top-overlay', 'bottom-overlay'.
A little nitpick but "bottom" should be a possible value
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#332 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACEK4wTw1Kkvre-x1bqmySJYIwb0HvKks5u1sangaJpZM4Y5FAE>
.
|
Perfect, looks great! I'll merge into our working brand |
* feat(config): allow to overlay pagination component * feat(config): allow to set the pagination position * docs(config): add pagination position * docs(): improve paginationPosition description and add to README
* feat(config): allow to overlay pagination component * feat(config): allow to set the pagination position * docs(config): add pagination position * docs(): improve paginationPosition description and add to README
So, what ever happened to this? |
Description
Add the option to position the pagination component in relation to the images
Motivation and Context
Position:
At the moment the pagination has a fixed position at the bottom, in some cases, it would be helpful to be able to change this. The main options would be position on top or bottom of the images.
Overlay:
In some cases vertical spacing is critical, and the pagination component does takes it's part. Although we can turn it off, making this component just a hint that overlays the images can solve the issue in a simple way.
How Has This Been Tested?
All commands below ran without error.
Screenshots:
Types of changes
Checklist: