mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
fix(badge): update tokens usage on shapes (#30603)
Issue number: internal --------- <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type (bugfix, feature, etc). Submit multiple pull requests if needed. --> ## What is the new behavior? <!-- Please describe the behavior or changes that are being added by this PR. --> - improve tokens usage; ## Does this introduce a breaking change? - [ ] Yes - [x] No <!-- If this introduces a breaking change: 1. Describe the impact and migration path for existing applications below. 2. Update the BREAKING.md file with the breaking change. 3. Add "BREAKING CHANGE: [...]" to the commit description when merging. See https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer for more information. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. --> [shapes](https://ionic-framework-git-rou-12131-ionic1.vercel.app/src/components/badge/test/shape?ionic:theme=ionic)
This commit is contained in:
@ -51,21 +51,21 @@
|
||||
|
||||
/* Soft Badge */
|
||||
:host(.badge-soft) {
|
||||
@include globals.border-radius(globals.$ion-border-radius-200);
|
||||
@include globals.border-radius(globals.$ion-soft-xs);
|
||||
}
|
||||
|
||||
:host(.badge-small.badge-soft) {
|
||||
@include globals.border-radius(globals.$ion-border-radius-100);
|
||||
@include globals.border-radius(globals.$ion-soft-2xs);
|
||||
}
|
||||
|
||||
/* Round Badge */
|
||||
:host(.badge-round) {
|
||||
@include globals.border-radius(globals.$ion-border-radius-full);
|
||||
@include globals.border-radius(globals.$ion-round-sm);
|
||||
}
|
||||
|
||||
/* Rectangular Badge */
|
||||
:host(.badge-rectangular) {
|
||||
@include globals.border-radius(globals.$ion-border-radius-0);
|
||||
@include globals.border-radius(globals.$ion-rectangular-sm);
|
||||
}
|
||||
|
||||
// Badge Sizes
|
||||
|
||||
@ -57,6 +57,40 @@
|
||||
</ion-badge>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
<ion-list>
|
||||
<ion-item>
|
||||
<ion-label>Medium Default</ion-label>
|
||||
<ion-badge size="medium" slot="end">1</ion-badge>
|
||||
<ion-badge size="medium" slot="end">99+</ion-badge>
|
||||
<ion-badge size="medium" slot="end">
|
||||
<ion-icon name="logo-ionic"></ion-icon>
|
||||
</ion-badge>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label>Medium Soft</ion-label>
|
||||
<ion-badge size="medium" slot="end" shape="soft">1</ion-badge>
|
||||
<ion-badge size="medium" slot="end" shape="soft">99+</ion-badge>
|
||||
<ion-badge size="medium" slot="end" shape="soft">
|
||||
<ion-icon name="logo-ionic"></ion-icon>
|
||||
</ion-badge>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label>Medium Round</ion-label>
|
||||
<ion-badge size="medium" slot="end" shape="round">1</ion-badge>
|
||||
<ion-badge size="medium" slot="end" shape="round">99+</ion-badge>
|
||||
<ion-badge size="medium" slot="end" shape="round">
|
||||
<ion-icon name="logo-ionic"></ion-icon>
|
||||
</ion-badge>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label>Medium Rectangular</ion-label>
|
||||
<ion-badge size="medium" slot="end" shape="rectangular">1</ion-badge>
|
||||
<ion-badge size="medium" slot="end" shape="rectangular">99+</ion-badge>
|
||||
<ion-badge size="medium" slot="end" shape="rectangular">
|
||||
<ion-icon name="logo-ionic"></ion-icon>
|
||||
</ion-badge>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</ion-content>
|
||||
</ion-app>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user