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

fix: pagination RTL idea #2001

Merged
merged 12 commits into from Feb 19, 2020
Merged

fix: pagination RTL idea #2001

merged 12 commits into from Feb 19, 2020

Conversation

mikerodonnell89
Copy link
Member

@mikerodonnell89 mikerodonnell89 commented Feb 18, 2020

Please provide a link to the associated issue.

Closes #1967

Please provide a brief summary of this pull request.

Simply using dir="rtl" won't flip the array of numbers presented in the *ngFor. Here I'm using the RtlService and forcing dir="ltr" and reversing the array using a pipe. This feels code-smelly so I'd love to get some other opinions

Before:

image

After:

firefox

ie11

@netlify
Copy link

netlify bot commented Feb 18, 2020

Deploy preview for fundamental-ngx ready!

Built with commit 076a492

https://deploy-preview-2001--fundamental-ngx.netlify.com

@mikerodonnell89 mikerodonnell89 changed the title [WIP] fix: pagination RTL hack [WIP] fix: pagination RTL idea Feb 19, 2020
@rengare rengare changed the title [WIP] fix: pagination RTL idea fix: pagination RTL idea Feb 19, 2020
@rengare rengare added this to In progress in Development via automation Feb 19, 2020
@rengare rengare added this to the Sprint 31 - Sofia milestone Feb 19, 2020
Copy link
Contributor

@JKMarkowski JKMarkowski left a comment

Choose a reason for hiding this comment

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

Some minor changes to apply.
Anyway, example works great.

libs/core/src/lib/pagination/pagination.component.ts Outdated Show resolved Hide resolved
libs/core/src/lib/pagination/pagination.component.ts Outdated Show resolved Hide resolved
libs/core/src/lib/pagination/pagination.component.html Outdated Show resolved Hide resolved
Development automation moved this from In progress to Review in progress Feb 19, 2020
Development automation moved this from Review in progress to Reviewer approved Feb 19, 2020
@mikerodonnell89 mikerodonnell89 merged commit 7858562 into master Feb 19, 2020
Development automation moved this from Reviewer approved to Done Feb 19, 2020
@droshev droshev deleted the fix/pagination-rtl branch February 19, 2020 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Defect hunting Feb14
4 participants