mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
Removed shape soft
This commit is contained in:
4
core/src/components.d.ts
vendored
4
core/src/components.d.ts
vendored
@ -753,7 +753,7 @@ export namespace Components {
|
|||||||
/**
|
/**
|
||||||
* Define the Chip corner shape, when using the Ionic Theme.
|
* Define the Chip corner shape, when using the Ionic Theme.
|
||||||
*/
|
*/
|
||||||
"shape"?: 'soft' | 'round' | 'rectangular';
|
"shape"?: 'round' | 'rectangular';
|
||||||
/**
|
/**
|
||||||
* The theme determines the visual appearance of the component.
|
* The theme determines the visual appearance of the component.
|
||||||
*/
|
*/
|
||||||
@ -5985,7 +5985,7 @@ declare namespace LocalJSX {
|
|||||||
/**
|
/**
|
||||||
* Define the Chip corner shape, when using the Ionic Theme.
|
* Define the Chip corner shape, when using the Ionic Theme.
|
||||||
*/
|
*/
|
||||||
"shape"?: 'soft' | 'round' | 'rectangular';
|
"shape"?: 'round' | 'rectangular';
|
||||||
/**
|
/**
|
||||||
* The theme determines the visual appearance of the component.
|
* The theme determines the visual appearance of the component.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -86,12 +86,10 @@ $ionic-states-hover: #{rgba(#05080f, 0.16)}; // We should review how to make thi
|
|||||||
// Chip Shapes
|
// Chip Shapes
|
||||||
// ---------------------------------------------
|
// ---------------------------------------------
|
||||||
|
|
||||||
:host(.chip-soft) {
|
|
||||||
--border-radius: #{tokens.$ionic-border-radius-rounded-small};
|
|
||||||
}
|
|
||||||
:host(.chip-round) {
|
:host(.chip-round) {
|
||||||
--border-radius: #{tokens.$ionic-border-radius-rounded-large};
|
--border-radius: #{tokens.$ionic-border-radius-rounded-large};
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.chip-rectangular) {
|
:host(.chip-rectangular) {
|
||||||
--border-radius: #{tokens.$ionic-border-radius-square};
|
--border-radius: #{tokens.$ionic-border-radius-square};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,7 +39,7 @@ export class Chip implements ComponentInterface {
|
|||||||
/**
|
/**
|
||||||
* Define the Chip corner shape, when using the Ionic Theme.
|
* Define the Chip corner shape, when using the Ionic Theme.
|
||||||
*/
|
*/
|
||||||
@Prop({ reflect: true }) shape?: 'soft' | 'round' | 'rectangular';
|
@Prop({ reflect: true }) shape?: 'round' | 'rectangular';
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { shape } = this;
|
const { shape } = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user