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

Radio buttons in disabled and checked state disappear in iOS Safari #8159

Closed
danlucas opened this issue Jun 12, 2013 · 2 comments
Closed

Radio buttons in disabled and checked state disappear in iOS Safari #8159

danlucas opened this issue Jun 12, 2013 · 2 comments
Labels
Milestone

Comments

@danlucas
Copy link

Whenever a radio button is in a disabled and checked state, you can only see the tick and not the background of the radio button.

Check out this jsfiddle http://jsfiddle.net/GkYN9/ on an iPad or iPhone in Safari (fullscreen results: http://jsfiddle.net/GkYN9/embedded/result/).

The styles that affect this are in https://github.com/twitter/bootstrap/blob/master/less/forms.less starting at line 336.

// Explicitly reset the colors here
input[type="radio"][disabled],
input[type="checkbox"][disabled],
input[type="radio"][readonly],
input[type="checkbox"][readonly] {
background-color: transparent;
}

You can override that but you have to be careful, because while desktop safari, chrome, and firefox doesn't seem to be affected by that rule, IE does.

@danlucas
Copy link
Author

... edit

Also not working in 3.0.0

mdo added a commit that referenced this issue Jun 21, 2013
Attached disabled styles to the exact input types rather than all
inputs and reseting the checkbox/radios. If setting `background-color:
transparent;`, iOS renders no background on the disabled control.
seriema added a commit to seriema/bootstrap-grunt that referenced this issue Jun 21, 2013
* upstream/3.0.0-wip: (42 commits)
  Rename class name in placeholder
  Fixes twbs#8154: enforce full width `.navbar-nav.pull-right` in mobile
  Fixes twbs#8159: Be more specific about disabled inputs to avoid iOS bug
  Fixes twbs#8093: Removes invalid focus styles on inputs
  run make on previous commit
  Fixes twbs#7730: Better hiding of empty titles in popovers
  Run make on last commit
  Use `@font-family-base` for headings font-family variable
  run make on @nextgenthemes last commit
  rename '.navbar .nav' to '.navbar-nav'
  Add heading font family variable
  Offcanvas example update
  Fixes twbs#8001: add IDs for example inputs
  Add missing property to form-horizontal docs
  Add support for `tr`, `th`, and `td` to responsive utilities
  run make on last commit
  docs/javascript.html: backticks -> <code>
  Use correct font-size to calculate input-heights
  Addresses twbs#8199: darker default button
  Add note about Jekyll version per twbs#8195
  ...

Conflicts:
	README.md
	docs/assets/js/bootstrap.min.js
	package.json
@mdo
Copy link
Member

mdo commented Jul 16, 2013

This should be fixed as of the commit a month ago.

@mdo mdo closed this as completed Jul 16, 2013
stempler pushed a commit to stempler/bootstrap that referenced this issue Apr 11, 2014
…id iOS bug

Attached disabled styles to the exact input types rather than all
inputs and reseting the checkbox/radios. If setting `background-color:
transparent;`, iOS renders no background on the disabled control.
stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
…id iOS bug

Attached disabled styles to the exact input types rather than all
inputs and reseting the checkbox/radios. If setting `background-color:
transparent;`, iOS renders no background on the disabled control.
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

2 participants