-
Notifications
You must be signed in to change notification settings - Fork 93
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
Exercise icon flipped in rtl #310
Conversation
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.
LGTM with manual testing.
@@ -0,0 +1,5 @@ | |||
describe("KButton", () => { |
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.
Is this part of this issue?
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.
🤦♂️ no will remove and push again later on - thanks for catching that!
lib/KIcon/iconDefinitions.js
Outdated
exercise: { icon: require('./precompiled-icons/material-icons/assignment/baseline.vue').default }, | ||
exercise: { | ||
icon: require('./precompiled-icons/material-icons/assignment/baseline.vue').default, | ||
rtlFlip: true |
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.
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?
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.
Yep!
79a6c4b
to
a5991a7
Compare
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.
LGTM! 🚀
Updates the configuration file so that the Exercise icon flips when in RTL.
Reviewer Guidance
Fixes #301