-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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(css): .dropdown-menu-right positioning #22707
Conversation
I don't understand what this fixes exactly. The problem link here has no |
The jsbin use Tether and is outdated. |
Click on "Dropdown link", the bug is still there. css is generated local: I rebased my branch. |
Yes it fixed the issue but on the last |
That's a navbar that always collapse, a mobile style. I think the default behaviour for Or perhaps we find a way to get popper.js manage this, but I think we don't want all this mess on js. I don't like override popper.js or use @mdo, have some thoughts? |
Ugh, yeah, we should work with the Popper team to get some better support for controlling the styles here. Having all these overrides kinda sucks. Ideally, instead of I'm unsure how best to rectify this in short order though. |
Maybe @FezVrasta have some ideas how we can handle that in a short term |
Hey, Popper.js "team" here (😂). If you want to make Popper.js apply only some specific styles you can inject a modifier before the applyStyle one and strip any unwanted properties from the styles object. But in my opinion you should override the applyStyles modifier all together and create one that reads the class applied to the popper element and applies the needed styles accordingly |
Edit : |
I made a commit (see : ca60fe4) which reset Popper.js styles for Dropdowns in Navbar. I post that here because I hope some feedbacks or ideas |
We have now 2 ways of fixing this:
In my opinion we shoud step the Johann way :) |
Superseded by #22782 |
This is a fix for placing
.dropdown-menu-right
on the right position for.navbar
and override Popper.js.Problem: http://output.jsbin.com/sozuva/1
This PR: https://codepen.io/zalog/pen/BREOMv
cc #22636, #22640, #22699