mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(all): color/mode inputs are not longer needed
This commit is contained in:
committed by
Manuel Mtz-Almeida
parent
7cee7b0eaf
commit
7272b5a42a
@@ -1,4 +1,4 @@
|
||||
import { Directive, ElementRef, Input, Renderer } from '@angular/core';
|
||||
import { Directive, ElementRef, Renderer } from '@angular/core';
|
||||
|
||||
import { Config } from '../../config/config';
|
||||
import { Ion } from '../ion';
|
||||
@@ -95,26 +95,6 @@ import { Ion } from '../ion';
|
||||
})
|
||||
export class Chip extends Ion {
|
||||
|
||||
/**
|
||||
* @input {string} The color to use from your Sass `$colors` map.
|
||||
* Default options are: `"primary"`, `"secondary"`, `"danger"`, `"light"`, and `"dark"`.
|
||||
* For more information, see [Theming your App](/docs/v2/theming/theming-your-app).
|
||||
*/
|
||||
@Input()
|
||||
set color(val: string) {
|
||||
this._setColor(val);
|
||||
}
|
||||
|
||||
/**
|
||||
* @input {string} The mode determines which platform styles to use.
|
||||
* Possible values are: `"ios"`, `"md"`, or `"wp"`.
|
||||
* For more information, see [Platform Styles](/docs/v2/theming/platform-specific-styles).
|
||||
*/
|
||||
@Input()
|
||||
set mode(val: string) {
|
||||
this._setMode(val);
|
||||
}
|
||||
|
||||
constructor(config: Config, elementRef: ElementRef, renderer: Renderer) {
|
||||
super(config, elementRef, renderer, 'chip');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user