-
Notifications
You must be signed in to change notification settings - Fork 84
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
feat(draggable-container): add flexDirection prop #7102
Conversation
const StyledIcon = styled(Icon)` | ||
margin-left: auto; | ||
`; | ||
const StyledIcon = styled(Icon)``; |
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.
Question: Do we need this anymore can we just render Icon?
@@ -46,6 +46,24 @@ export const DefaultStory: Story = () => ( | |||
); | |||
DefaultStory.storyName = "Default"; | |||
|
|||
export const FlexDirectionStory: Story = () => ( |
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.
suggestion: it might be worth changing the children a bit here so when a user drags it's obvious the order has been updated etc
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.
Nothing more to add from me. Address the comments by @edleeks87 and I'll get this approved 😄
adds the flexDirection prop which provides consumers with the means to change the flex-direction css attribute from row to row-reverse or vice versa fix #7089
🎉 This PR is included in version 144.11.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fix #7089
Proposed behaviour
adds the
flexDirection
prop which provides consumers with the means to change the flex-direction css attribute from row to row-reverse or vice versaCurrent behaviour
Currently, consumers have no control over where the "draggable" icon is placed, and it is always rendered on the right-hand side by default
Checklist
d.ts
file added or updated if requiredQA
Additional context
Testing instructions