mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix(buttons): fix activated, position, animation
This commit is contained in:
@ -8,6 +8,10 @@
|
||||
color: #{ion-color(primary, base)};
|
||||
}
|
||||
|
||||
:host(.activated) {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
button {
|
||||
@include padding(0, 5px);
|
||||
}
|
||||
|
@ -39,7 +39,9 @@ export class MenuButton implements ComponentInterface {
|
||||
|
||||
hostData() {
|
||||
return {
|
||||
'ion-activatable': true,
|
||||
class: {
|
||||
// ion-buttons target .button
|
||||
'button': true
|
||||
}
|
||||
};
|
||||
@ -53,6 +55,7 @@ export class MenuButton implements ComponentInterface {
|
||||
<slot>
|
||||
<ion-icon icon={menuIcon} mode={this.mode} color={this.color} lazy={false} />
|
||||
</slot>
|
||||
{this.mode === 'md' && <ion-ripple-effect></ion-ripple-effect>}
|
||||
</button>
|
||||
</ion-menu-toggle>
|
||||
);
|
||||
|
Reference in New Issue
Block a user