-
Notifications
You must be signed in to change notification settings - Fork 917
Feature: rtl support #333
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
Feature: rtl support #333
Conversation
Hi, Can you please check our changes and pull it into master? Thanks |
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.
Looks Good. Some minor comments and questions
@@ -60,7 +61,7 @@ exports[`<SortableTree /> should render tree correctly 1`] = ` | |||
} | |||
> | |||
<div | |||
className="rst__lineBlock rst__lineHalfHorizontalRight" | |||
className="rst__lineBlock rst__lineHalfHorizontalRight " |
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.
Can you get rid of the extra space at the end?
src/tree-node.js
Outdated
@@ -81,7 +84,7 @@ class TreeNode extends Component { | |||
<div | |||
key={`pre_${1 + i}`} | |||
style={{ width: scaffoldBlockPxWidth }} | |||
className={`${'rst__lineBlock'} ${lineClass}`} | |||
className={`${'rst__lineBlock'} ${lineClass} ${directionClass}`} |
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.
you can use classnames here
@@ -49,6 +49,7 @@ exports[`<SortableTree /> should render tree correctly 1`] = ` | |||
> | |||
<div | |||
className="rst__node" | |||
direction={undefined} |
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.
why is this undefined in a lot of places?
Wow @lionben89 I'm really impressed. All that is left is adding documentation and a storybook example. If you don't want to add the storybook example I can do it. |
closes: #209
closes: #325
closes: #253
closes: #311
follow up to #331