mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +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:
@ -89,10 +89,11 @@ export class Toolbar implements ComponentInterface {
|
||||
return (
|
||||
<Host
|
||||
class={{
|
||||
'in-toolbar': hostContext('ion-toolbar', this.el),
|
||||
[mode]: true,
|
||||
...childStyles,
|
||||
...createColorClasses(this.color),
|
||||
...createColorClasses(this.color, {
|
||||
[mode]: true,
|
||||
'in-toolbar': hostContext('ion-toolbar', this.el),
|
||||
}),
|
||||
}}
|
||||
>
|
||||
<div class="toolbar-background"></div>
|
||||
|
||||
Reference in New Issue
Block a user