question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: control badge positioning on icon within ion-button

See original GitHub issue

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:

<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:open
  • Created 4 years ago
  • Reactions:17
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
hwasoochocommented, Jul 9, 2019

Hi thanks for the prompt reply!

Sorry, I must’ve been ambiguous with my original request. Please refer to the screenshot below.

Screenshot_20190709-155226_Chrome

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.

4reactions
gabrielmtnscommented, Apr 30, 2020

that would be great. waiting for news… 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found