fix(buttons): fix activated, position, animation

This commit is contained in:
Manu Mtz.-Almeida
2018-09-25 18:35:19 +02:00
parent 633360fcba
commit 9d6169acdd
10 changed files with 25 additions and 38 deletions

View File

@ -8,6 +8,10 @@
color: #{ion-color(primary, base)};
}
:host(.activated) {
opacity: 0.4;
}
button {
@include padding(0, 5px);
}

View File

@ -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>
);