ionic-team / ionic-team/ionic-framework

feat: control badge positioning on icon within ion-button

Offen
#18,736 7 Kommentare 22 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
package: core type: feature request
Vorherrschende Sprache
TypeScript
Sterne
52.7k
Forks
13.3k
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
51

Beschreibung

# Feature Request

**Ionic version:**
[x] **4.x**

**Describe the Feature Request**
`ion-button` with slottable `ion-badge` to indicate notifications.

**Describe Preferred Solution**
`ion-tab-button` already has this. From the [doc](https://ionicframework.com/docs/api/tabs):
```


Schedule
6

```

**Describe Alternatives**
Reference to how this can be done currently:
https://forum.ionicframework.com/t/how-to-add-a-badge-to-a-icon-inside-a-ion-button/70868/3

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by comparing the ion-button component with the existing ion-tab-button badge behavior and the linked tabs documentation. Confirm how a slotted ion-badge should be positioned on an icon within ion-button, then verify that the resulting layout matches the requested notification-badge example.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
frontend
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.