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
fix(dropdown): fix some bugs introduce by the previous commit (#1473) #1505
Conversation
…ic#1473) This PR fixes the first level of simple dropdown inside the right menu was cropped and out of the screen when the parent menu item has short text, and the dropdown doesn't specify the class name `left`. To avoid this, all dropdown inside the right menu will be forced to appear leftward by default. The dropdown can also appear leftward or rightward by having `left` or `right` class name. This PR also fix the dropdown inside the buttons which are positioned incorrectly. Closes: fomantic#1502
I updated the left and right margin of sub menu Previously in dropdown.variables: I don't think it's necessary to specify individually for leftward and rightward. And I also would like to suggest removing the declaration
This especially effects on the simple dropdown in the right menu, that need to specify to appear rightward direction with the class name With
|
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😃 Thank you for the quick fix! 👍
Although your suggested removement for !important
seems to work fine (in your jsfiddle)
- this selector is also used for items.
- There are also other margin settings using !important in stackable.menu for a left/right/center item in menu.less, so it might has impact there.
So, either you leave the !importants in (for now / this PR) or you check all other !important settings for any right/left/center/ menu margin within menu.less and remove (and test) them as well
I basically would love to see the !importants getting removed, but there are lots of situations to be tested, so we might postpone the !important removement into a later PR to get this one getting merged asap
That said, i approve this PR for now as it is 🙂
@lubber-de Thanks for the details. Then, I'll test with the other modules around and if it doesn't break anything, I'll send a PR for this. |
The previous version did not fix the left submenu on iOS, worked fine on other os/browsers. Is this fix tested on iOS? |
The above mentioned fixed jsfiddle runs fine as expected on iPad Pro, iOS 13, Safari |
@ko2in is your fix going to be released, soon? The menu out of screen bug prevents us from updating to the latest version. |
@ceisele-r v2.8.6 (which includes this fix) is supposed to be released tomorrow 🙂 |
Great, thanks @lubber-de |
@ceisele-r 2.8.6 has been released just now 🎉 We hear your voices 😄 |
@lubber-de thank you very much! |
Description
This PR fixes the first level of simple dropdown inside the right menu was cropped and out of the screen when the parent menu item has short text, and the dropdown doesn't specify the class name
left
.To avoid this, all dropdown inside the right menu will be forced to appear leftward by default. The dropdown can also appear leftward or rightward by having
left
orright
class name for it's nested dropdown menus.This PR also fix the dropdown inside the buttons which are positioned incorrectly.
Testcase
Broken
https://jsfiddle.net/18jogrs9/
https://jsfiddle.net/usfh3tpw/1/
Fixed
https://jsfiddle.net/ymo0f9st/
Closes
#1502
#1514
#1520