Skip to content
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

v4 - Split button dropdowns get excess width when active on mobile devices #17321

Closed
GeoffYoung opened this issue Aug 26, 2015 · 3 comments
Closed

Comments

@GeoffYoung
Copy link
Contributor

In the split button dropdowns when the dropdown menu is opened the dropdown-toggle gets some extra width applied.

I'm seeing this on Chrome 44 for android and Safari 8 on iOS

photo aug 25 8 52 35 pm

@GeoffYoung
Copy link
Contributor Author

So there's padding of .375rem 1rem applied to .btn which is causing 16px padding on the left and right.

It's normally being overridden by

.btn-group>.btn+.dropdown-toggle {
    padding-right: 8px;
    padding-left: 8px;
}

but when the dropdown opens <div class="dropdown-backdrop"></div> is created in between that .btn and the .dropdown-toggle, which seems to prevent the sibling selector from applying.

@patrickhlauke
Copy link
Member

confirming this for other platforms as well (Android/Chrome, Windows 10 Mobile/Microsoft Edge)

split-android-chrome

split-win10

@mdo mdo added this to the v4.0.0-alpha.3 milestone Sep 8, 2016
@mdo
Copy link
Member

mdo commented Sep 8, 2016

This was addressed with #18807 in Alpha 3. Thanks!

@mdo mdo closed this as completed Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants