mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-26 08:13:34 +08:00
feat(select): using action-sheet as ion-select interface
This commit is contained in:
@ -82,6 +82,11 @@ ion-action-sheet {
|
||||
}
|
||||
}
|
||||
|
||||
.action-sheet-selected {
|
||||
font-weight: bold;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.action-sheet-destructive {
|
||||
color: $action-sheet-ios-button-destructive-text-color;
|
||||
}
|
||||
|
@ -64,3 +64,7 @@ $action-sheet-md-icon-margin: 0 28px 0 0 !default;
|
||||
margin-bottom: $action-sheet-md-group-margin-bottom;
|
||||
}
|
||||
}
|
||||
|
||||
.action-sheet-selected {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
@ -240,6 +240,8 @@ class ActionSheetCmp {
|
||||
} else {
|
||||
if (button.role === 'destructive') {
|
||||
button.cssClass = (button.cssClass + ' ' || '') + 'action-sheet-destructive';
|
||||
} else if (button.role === 'selected') {
|
||||
button.cssClass = (button.cssClass + ' ' || '') + 'action-sheet-selected';
|
||||
}
|
||||
buttons.push(button);
|
||||
}
|
||||
|
@ -69,6 +69,10 @@ $action-sheet-wp-icon-margin: 0 16px 0 0 !default;
|
||||
}
|
||||
}
|
||||
|
||||
.action-sheet-selected {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.action-sheet-cancel {
|
||||
background: $action-sheet-wp-button-background;
|
||||
}
|
||||
|
Reference in New Issue
Block a user