mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(colorClass): update createColorClasses() for ts4 (#21896)
Change the createColorClasses() fn so the returned type and jsx class property work well with typescript 4
This commit is contained in:
@ -83,11 +83,8 @@ export class MenuButton implements ComponentInterface, ButtonInterface {
|
||||
onClick={this.onClick}
|
||||
aria-disabled={disabled ? 'true' : null}
|
||||
aria-hidden={hidden ? 'true' : null}
|
||||
class={{
|
||||
class={createColorClasses(color, {
|
||||
[mode]: true,
|
||||
|
||||
...createColorClasses(color),
|
||||
|
||||
'button': true, // ion-buttons target .button
|
||||
'menu-button-hidden': hidden,
|
||||
'menu-button-disabled': disabled,
|
||||
@ -95,7 +92,7 @@ export class MenuButton implements ComponentInterface, ButtonInterface {
|
||||
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
||||
'ion-activatable': true,
|
||||
'ion-focusable': true
|
||||
}}
|
||||
})}
|
||||
>
|
||||
<button
|
||||
{...attrs}
|
||||
|
Reference in New Issue
Block a user