-
-
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
Radio buttons appearing as squares on iOS 9.1 #20214
Milestone
Comments
cvrebert
changed the title
[BS4a2] Radio buttons appearing as squares on iPhone
Radio buttons appearing as squares on iOS 9.1 iPhone 6
Jul 1, 2016
No, not intentional. |
It seems to be caused by input { border-radius: 0; } Mobile safari uses border-radius: 8px by default. |
cvrebert
changed the title
Radio buttons appearing as squares on iOS 9.1 iPhone 6
Radio buttons appearing as squares on iOS 9.1
Jul 4, 2016
Pretty odd behavior of mobile Safari. |
Indeed. Using the style inspector shows that iOS Safari's UA stylesheet includes: input[type="radio"] {
-webkit-appearance: radio;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
border-bottom-left-radius: 8px;
width: 16px;
height: 16px;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
background-color: rgba(255, 255, 255, 0.00784314);
} And as your CodePen demonstrates, our code is also affecting iOS Safari's default checkbox styles, which are: input[type="checkbox"] {
-webkit-appearance: checkbox;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
width: 16px;
height: 16px;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
background-color: rgba(255, 255, 255, 0.00784314);
} |
Closed
Fixed by #20695. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this an intentional styling of bootstrap?
Screenshot taken directly from BS4 docs page without alterations. Tested on iPhone 6s and iPhone simulator from xcode.
The text was updated successfully, but these errors were encountered: