Skip to content

Feature request (ionic v2): support icon and badge in ion-segment-button #6957

@jma-9code

Description

@jma-9code

Short description of the problem:

Using an icon in "ion-segment-button" breaks the CSS. Moreover, it would be convenient to have a badge system like tabs (cf #6636).

Code example :

<ion-segment light [(ngModel)]="curSegment">
        <ion-segment-button value="toAccept">
            <ion-icon item-left name="flash"></ion-icon>//bad render
            toAccept
            <ion-badge danger item-right>{{challengesToAccept.length}}</ion-badge> //bad render
        </ion-segment-button>
    </ion-segment>

Which Ionic Version? 2.x beta 8
Tested under android and browser.
test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions