Buttons, images and title in ion-toolbar

I’m trying to build an ion-toolbar that features a button at each end (ion-menu-button on the left and regular button on the right) with a text title and clickable image in the middle.

As you can see from the screenshot the title and image do not align nicely. I’d like to stick to standard ion elements if possible. What should my mark up look like to achieve this?

Current markup:

        <ion-buttons slot="start">
                <img src="menu.svg" alt="menu">

        <ion-title (click)="search()">
            <ion-button fill="clear">
                <img slot="start" alt="favourite" src="favorite_selected.svg"
                             (click)="removeFavouriteLocation(selectedLocation.id); false;">

        <img #searchIcon  slot="end" id="searchIcon" src="search.svg" (click)="search()"/>

I guess you can try flex to align then vertically

ion-title {
   display: flex;
   align-items: center;
   justify-content: center;

The solution I have settled on is

                <ion-icon alt="favourite" src="assets/icon/favorite_selected.svg" class="favourite-toggle"
                          (click)="removeFavouriteLocation(selectedLocation.id); false;"></ion-icon>
                <ion-label  (click)="initLocationModal()" >{{selectedLocation?.name}}</ion-label>

along with some vertical alignment fixes

ion-title {
    ion-icon.favourite-toggle {
        font-size: 24px;
        vertical-align: middle;
        padding-right: 5px;
    ion-label {
        vertical-align: middle;
1 Like