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

Exercise icon flipped in rtl #310

Merged

Conversation

nucleogenesis
Copy link
Member

Updates the configuration file so that the Exercise icon flips when in RTL.

Reviewer Guidance

  • Checkout this branch locally
  • Link it to your Kolibr
  • Check that the icon flips in RTL

Fixes #301

@nucleogenesis nucleogenesis added the TODO: needs review Waiting for review label Feb 4, 2022
@nucleogenesis nucleogenesis requested a review from sairina February 4, 2022 18:26
Copy link
Contributor

@sairina sairina left a comment

Choose a reason for hiding this comment

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

LGTM with manual testing.

@@ -0,0 +1,5 @@
describe("KButton", () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this part of this issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

🤦‍♂️ no will remove and push again later on - thanks for catching that!

exercise: { icon: require('./precompiled-icons/material-icons/assignment/baseline.vue').default },
exercise: {
icon: require('./precompiled-icons/material-icons/assignment/baseline.vue').default,
rtlFlip: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh - so now, if this is true, and the language is also rtl, then in the KIcon file itself, the class of 'rtl-flip-icon' will also be true, and the icon will be flipped?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep!

Copy link
Contributor

@sairina sairina left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@nucleogenesis nucleogenesis merged commit ae44559 into learningequality:main Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TODO: needs review Waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

exercise icon should be mirrored in RTL languages
2 participants