#taiga: Show badge in tab

6 messages · Page 1 of 1 (latest)

floral wharf
#

Hi there, I am working on a tab bar and I would like to use badges in the tab item itself. However, there it's not showing up correctly.

Here is a link which reproduces the problem.
https://stackblitz.com/edit/angular-wwj6dj?file=src%2Fapp%2Fapp.component.html

I was just wondering if there is a way to have tabs with badges, without having to stay editing the styling for this specific scenario.

open mason
#

why do you put <button>Tab 2</button> inside </tui-badged-content>?

floral wharf
open mason
#

Which one of the examples?

floral wharf
#

this one

open mason
#

I still can't see the point.

  • that example uses svg icons, not badges
  • it puts the icons inside the button
    you're:
  • using badges, not icons
  • putting the buttons inside the badges, so the opposite
    Why don't you simply use the badge just after the button in your template?