Created
October 11, 2015 18:51
-
-
Save bitflower/74f8a1153404c12b8613 to your computer and use it in GitHub Desktop.
ionRadio fix for iOS 9 bugs (SASS version)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This CSS uses adjacent selectors instead of general sibling (~) selectors | |
* for ion radio that are broken in iOS 9 UIWebView. | |
* | |
* To apply the patch, include this CSS after your ionic.css include. | |
* | |
* SASS version of Max Lynch's CSS snippet: | |
* https://gist.github.com/mlynch/064d27912b511a63caa3 | |
*/ | |
.item-radio { | |
input { | |
&:checked { | |
&+ .radio-content { | |
.item-content { | |
/* style the item content when its checked */ | |
background: #f7f7f7; | |
} | |
.radio-icon { | |
/* show the checkmark icon when its checked */ | |
visibility: visible; | |
} | |
} | |
} | |
} | |
.radio-icon { | |
/* Icon style for non-checked item */ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment