You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to make the dropdown for dropleft and dropright symmetrical, without further btn-group nesting by using the first|last-of-type selector?
(...in the example I placed the dropdown-menu between the two buttons, but its position should not matter, the important thing would be remove btn-group nesting...and - sorry - used !important just to override the default bootstrap behaviour as I am not considering vertical btn-groups here. Using the first|last-of-type selector make it possible to discard any other non .btn element - such as an absolute positioned initially hidden menu - when deciding which border-radius to drop)
ps I am not sure why a nested-group was used, but I am sure there is a reason that I was not able to find...that's why I did not open a pr directly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Would it be possible to make the dropdown for dropleft and dropright symmetrical, without further btn-group nesting by using the
first|last-of-type
selector?Something like this: https://codepen.io/pine3ree/pen/LYNQYvL
(...in the example I placed the dropdown-menu between the two buttons, but its position should not matter, the important thing would be remove btn-group nesting...and - sorry - used
!important
just to override the default bootstrap behaviour as I am not considering vertical btn-groups here. Using thefirst|last-of-type
selector make it possible to discard any other non .btn element - such as an absolute positioned initially hidden menu - when deciding which border-radius to drop)ps
I am not sure why a nested-group was used, but I am sure there is a reason that I was not able to find...that's why I did not open a pr directly.
kind regards
Beta Was this translation helpful? Give feedback.
All reactions