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: when direction:rtl style applied, move functions failed to work #293

Merged
merged 1 commit into from
May 29, 2022
Merged

fix: when direction:rtl style applied, move functions failed to work #293

merged 1 commit into from
May 29, 2022

Conversation

eyal-elkevity
Copy link
Contributor

@eyal-elkevity eyal-elkevity commented May 28, 2022

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • [x ] Unit tests are passing ng test
  • [x ] Lint tests are passing ng lint
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug fix - when direction:rtl style is used (Hebrew in my case) the move functions do not work.

  • What is the current behavior? (You can also link to an open issue here)
    just apply a "direction:rtl" to the style of say the demo page, and you'll see the failed functionality

  • What is the new behavior (if this is a feature change)?
    a quick fix - forcing 'direction:rtl' and flipping the UI did the trick, only thing left was a twirq in position calculation (reversing it) and it did the trick.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    no.

  • Other information:
    This should have been a nicer "richer" commit, With changes to move functions according to functionality (moveLeft is actually moving right and vice versa) but hey - it's moving now. It didn't before. Also - with testing - made sure all passed, but didn't add new ones. I just figured it is NOT working today, and it IS working after this quick tiny fix, at least on "my machine", why not push it? I've seen some users requesting it, like Support for RTL direction #270 so figured why not try a PR

Copy link
Owner

@bfwg bfwg left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@bfwg bfwg merged commit 6d80d69 into bfwg:develop May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants