Add shape condition

This commit is contained in:
Bernardo Cardoso
2024-04-09 11:10:59 +01:00
parent e3f4a56a71
commit 545199889a

View File

@ -50,7 +50,7 @@ export class Chip implements ComponentInterface {
aria-disabled={this.disabled ? 'true' : null} aria-disabled={this.disabled ? 'true' : null}
class={createColorClasses(this.color, { class={createColorClasses(this.color, {
[theme]: true, [theme]: true,
[`chip-${shape}`]: shape !== undefined, [`chip-${shape}`]: theme === 'ionic' && shape !== undefined,
'chip-outline': this.outline, 'chip-outline': this.outline,
'chip-disabled': this.disabled, 'chip-disabled': this.disabled,
'ion-activatable': true, 'ion-activatable': true,