File tree Expand file tree Collapse file tree 5 files changed +15
-7
lines changed Expand file tree Collapse file tree 5 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ $alert-ios-checkbox-icon-checkmark-color: $background-ios-color !default;
142
142
.alert-tappable {
143
143
display : flex ;
144
144
min-height : $alert-ios-button-min-height ;
145
- cursor : pointer ;
146
145
}
147
146
148
147
Original file line number Diff line number Diff line change @@ -127,7 +127,6 @@ $alert-md-button-text-align: right !default;
127
127
overflow : hidden ;
128
128
display : flex ;
129
129
min-height : 44px ;
130
- cursor : pointer ;
131
130
}
132
131
133
132
Original file line number Diff line number Diff line change @@ -78,3 +78,14 @@ ion-alert {
78
78
line-height : $alert-button-line-height ;
79
79
font-size : $alert-button-font-size ;
80
80
}
81
+
82
+ .alert-tappable {
83
+ margin : 0 ;
84
+ padding : 0 ;
85
+ width : 100% ;
86
+ font-size : inherit ;
87
+ line-height : initial ;
88
+ text-align : left ;
89
+ background : transparent ;
90
+ -webkit-appearance : none ;
91
+ }
Original file line number Diff line number Diff line change @@ -219,23 +219,23 @@ export class Alert extends ViewController {
219
219
220
220
'<template ngSwitchWhen="radio">' +
221
221
'<div class="alert-radio-group" role="radiogroup" [attr.aria-labelledby]="hdrId" [attr.aria-activedescendant]="activeId">' +
222
- '<div *ngFor="#i of d.inputs" (click)="rbClick(i)" [attr.aria-checked]="i.checked" [attr.id]="i.id" class="alert-tappable alert-radio" tappable role="radio">' +
222
+ '<button *ngFor="#i of d.inputs" (click)="rbClick(i)" [attr.aria-checked]="i.checked" [attr.id]="i.id" class="alert-tappable alert-radio" role="radio">' +
223
223
'<div class="alert-radio-icon"></div>' +
224
224
'<div class="alert-radio-label">' +
225
225
'{{i.label}}' +
226
226
'</div>' +
227
- '</div >' +
227
+ '</button >' +
228
228
'</div>' +
229
229
'</template>' +
230
230
231
231
'<template ngSwitchWhen="checkbox">' +
232
232
'<div class="alert-checkbox-group">' +
233
- '<div *ngFor="#i of d.inputs" (click)="cbClick(i)" [attr.aria-checked]="i.checked" class="alert-tappable alert-checkbox" tappable role="checkbox">' +
233
+ '<button *ngFor="#i of d.inputs" (click)="cbClick(i)" [attr.aria-checked]="i.checked" class="alert-tappable alert-checkbox" role="checkbox">' +
234
234
'<div class="alert-checkbox-icon"><div class="alert-checkbox-inner"></div></div>' +
235
235
'<div class="alert-checkbox-label">' +
236
236
'{{i.label}}' +
237
237
'</div>' +
238
- '</div >' +
238
+ '</button >' +
239
239
'</div>' +
240
240
'</template>' +
241
241
Original file line number Diff line number Diff line change @@ -143,7 +143,6 @@ ion-alert {
143
143
overflow : hidden ;
144
144
display : flex ;
145
145
min-height : 44px ;
146
- cursor : pointer ;
147
146
}
148
147
149
148
You can’t perform that action at this time.
0 commit comments