Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

IonButton and IonBackButton customizations

$
0
0

@OoDeLally wrote:

Hello,
I would like to prompt a confirmation alert when my user clicks on IonBackButton.

I could not see any way to do that.
Therefore I thought I would rely on a custom IonButton:

            <IonButton onClick={askConfirmation()} >
              <IonIcon icon={arrowBack} />
            </IonButton>

However the buttons do not look the same:
(left: IonButton, right: IonBackButton)
image

Applying a custom css seems to do the trick:

.my-back-button-class ion-icon {
  font-size: 24px;
}

But seems hackish and probably not very scalable.

What is the cleanest way to achieve my goal?

Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>