File tree 2 files changed +6
-14
lines changed
2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,10 @@ IonicModule
35
35
template :
36
36
'<label class="item item-radio">' +
37
37
'<input type="radio" name="radio-group">' +
38
- '<div class="item-content disable-pointer-events" ng-transclude></div>' +
39
- '<i class="radio-icon disable-pointer-events icon ion-checkmark"></i>' +
38
+ '<div class="radio-content">' +
39
+ '<div class="item-content disable-pointer-events" ng-transclude></div>' +
40
+ '<i class="radio-icon disable-pointer-events icon ion-checkmark"></i>' +
41
+ '</div>' +
40
42
'</label>' ,
41
43
42
44
compile : function ( element , attr ) {
Original file line number Diff line number Diff line change 34
34
position : absolute ;
35
35
left : -9999px ;
36
36
37
- & :checked ~ .item-content {
37
+ & :checked + .radio-content .item-content {
38
38
/* style the item content when its checked */
39
39
background : #f7f7f7 ;
40
40
}
41
41
42
- & :checked ~ .radio-icon {
42
+ & :checked + .radio-content .radio-icon {
43
43
/* show the checkmark icon when its checked */
44
44
visibility : visible ;
45
45
}
46
46
}
47
47
48
- // Hack for Android to correctly display the checked item
49
- // http://timpietrusky.com/advanced-checkbox-hack
50
- .platform-android.grade-b .item-radio ,
51
- .platform-android.grade-c .item-radio {
52
- -webkit-animation : androidCheckedbugfix infinite 1s ;
53
- }
54
- @-webkit-keyframes androidCheckedbugfix {
55
- from { padding : 0 ; }
56
- to { padding : 0 ; }
57
- }
You can’t perform that action at this time.
0 commit comments