-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fixing MM-14886 without moving back the input inside the menu #2616
Conversation
@@ -2041,5 +2041,5 @@ | |||
position: absolute; | |||
right: 0; | |||
top: 0; | |||
width: 100%; | |||
width: 0; |
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.
Would using visibility: hidden
make more sense? Or does that have other effects that cause problems here?
https://developer.mozilla.org/en-US/docs/Web/CSS/visibility
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.
Yes, I don't trust too much in this kind of things because some browsers doesn't allow you to interact with not-visible elements, but yes, we can try with other approaches, anyway we need to test it in all the browsers (my solution works in firefox and chromium for sure)
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'm not opposed to using width: 0
I just have the same concern that I'm not sure how all browsers will treat that and if it would still be possible to click or see somehow. I'm 0/5
4fd2187
to
3adc738
Compare
cherry picked e61f79a into release 5.10 branch |
…most#2616) * Revert "MM-14886 Move file input back to be child of button (mattermost#2614)" This reverts commit 50c7ae2. * Fixing original bug without the need of moving the input inside again
Summary
The problem was the menu being invisible but on top of the arrow button, now is just width 0.
Ticket
MM-14920