feat: control badge positioning on icon within ion-button
See original GitHub issueFeature 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:
<ion-tab-button tab="schedule">
<ion-icon name="calendar"></ion-icon>
<ion-label>Schedule</ion-label>
<ion-badge>6</ion-badge>
</ion-tab-button>
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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:17
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to add a badge to a icon inside a ion-button? - Ionic Forum
I need to add a badge to a ion icon inside a ion-button this way: ... #notifications-badge { background-color: red; position: absolute; ...
Read more >How to add a ion-badge inside an ion-button in Ionic 5?
WARNING: The badge is positioned relative to the div and not the button. So if the badge shifts anywhere, adjust the width and...
Read more >2021 POLICE INTERCEPTOR UTILITY Owner's Manual
child restraint and the release button, to prevent accidental unbuckling. •. Place the vehicle seat in the upright position before you install the...
Read more >Fitbit tips and tricks - Pocket-lint
Tap on on the Account icon in the top left of the Today tab > Tap on ... only be an option on...
Read more >Apple Watch User Guide
Better control your home In watchOS 8, the Home app has been redesigned to ... When prompted, position your iPhone so that your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi thanks for the prompt reply!
Sorry, I must’ve been ambiguous with my original request. Please refer to the screenshot below.
I was thinking something more like the icon-only navbar button shown at top-right which essentially mirrors what Ionic already has with
ion-tab-button
shown at bottom-left.that would be great. waiting for news… 😄