mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
feat(alert): add destructive role to alert buttons (#21269)
This commit is contained in:
@ -505,6 +505,7 @@ const buttonClass = (button: AlertButton): CssClassMap => {
|
||||
'alert-button': true,
|
||||
'ion-focusable': true,
|
||||
'ion-activatable': true,
|
||||
[`alert-button-role-${button.role}`]: button.role !== undefined,
|
||||
...getClassMap(button.cssClass)
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user