-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Dropzone] Support fixed height #2846
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
Conversation
🟢 This pull request modifies 4 files and might impact 1 other files. Details:All files potentially affected (total: 1)📄
|
7a259fb
to
0bbc85f
Compare
82cddde
to
3fc4945
Compare
3fc4945
to
8101489
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.
I applied the changes to pass travis, top-hatted in the playground, in chrome and edge chromium. All looks good.
I didn't tophat in web, might be worth if someone has a chance to yarn build-consumer web
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! I tested this out in Storybook and I didn't see any issues. If possible, we should give this a try in online-store-web
before merging.
It is interesting to see this solution. The previous WIP PR seemed rather complicated - maybe I missed something on my initial scan, but are the two PRs achieving the same thing @alexandcote ? Or are you intentionally leaving out some complexity?
.DropZoneWrapper { | ||
height: 100%; | ||
|
||
> div { |
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.
This is always a bit risky to do, because if the Labelled
wrapping markup changes we need to make sure that this will change as well. I think thanks to the splash
build tooling that polaris
uses, we will get a notification that at least indicates DropZone
will be affected by Labelled
changes. Still... I'm wondering if we should qualify this with a comment to express why we need to override some Labelled
styles?
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.
Probably a comment or it'll be forgotten about and list in the 💨
@maxariss I remember this originally broke something you were working on, but I can't remember exactly where the dropzone was. Mind giving me a reminder so we can 🎩 in that area? |
cc/ @maxariss |
1 similar comment
cc/ @maxariss |
@AndrewMusgrave I could be mistaken, but I believe one area where this issue was originally raised was the |
Any update on this one? |
cc/ @alexandcote |
No update on my side, I opened this PR in March but now I don't have time to take a second look. Feel free to update/merge/close the PR if anyone had time. |
4eab9e5
to
9e09ba7
Compare
2c6e842
to
d2611d6
Compare
c630336
to
ea3c495
Compare
@alexandcote is this still an issue? |
WHY are these changes introduced?
Fixes #742
The DropZone determines its size (height and width) based on width only. This makes certain valid use cases, where the default DropZone height isn't appropriate, impossible.
WHAT is this pull request doing?
Adding a new Dropzone wrapper that use the power of flexbox to determine the height.
🎩 checklist
README.md
with documentation changes