fix(react): add class based APIs (#16665)

fixes #16583
This commit is contained in:
Manu MA
2018-12-11 01:08:00 +01:00
committed by GitHub
parent 64557a7bcc
commit 2933f61e8d
32 changed files with 117 additions and 67 deletions

View File

@ -59,12 +59,11 @@ export class BackButton implements ComponentInterface {
const showBackButton = this.defaultHref !== undefined;
return {
'ion-activatable': true,
class: {
...createColorClasses(this.color),
// ion-buttons target .button
'button': true,
'button': true, // ion-buttons target .button
'ion-activatable': true,
'show-back-button': showBackButton
}
};