mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
feat(chip): add hue property for the ionic theme (#30308)
Issue number: internal --------- ## What is the current behavior? The chip component does not support the `hue` property. ## What is the new behavior? Adds support for the `bold` and `subtle` hue for the chip. Defaults to `subtle`. ## Does this introduce a breaking change? - [ ] Yes - [x] No
This commit is contained in:
@ -618,14 +618,14 @@ export declare interface IonCardTitle extends Components.IonCardTitle {}
|
||||
|
||||
@ProxyCmp({
|
||||
defineCustomElementFn: defineIonChip,
|
||||
inputs: ['color', 'disabled', 'mode', 'outline', 'shape', 'size', 'theme']
|
||||
inputs: ['color', 'disabled', 'hue', 'mode', 'outline', 'shape', 'size', 'theme']
|
||||
})
|
||||
@Component({
|
||||
selector: 'ion-chip',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
template: '<ng-content></ng-content>',
|
||||
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
|
||||
inputs: ['color', 'disabled', 'mode', 'outline', 'shape', 'size', 'theme'],
|
||||
inputs: ['color', 'disabled', 'hue', 'mode', 'outline', 'shape', 'size', 'theme'],
|
||||
standalone: true
|
||||
})
|
||||
export class IonChip {
|
||||
|
Reference in New Issue
Block a user