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

Two line buttons in ionic 6

$
0
0

I’m trying to create a two-line ion-button in Ionic 6. I’ve searched Stack Overflow and the answer of overriding .button-inner with flex-flow: column isn’t working because that class can’t be accessed within the shadow DOM. Is there another way of doing this?

I’ve tried all of the following both inside :host and outsite :host within my Angular components scss.

.button-inner {
    flex-flow: column;
}

ion-button {
    &::part(native) {
        .button-inner {
            flex-flow: column;
        }
    }
}

ion-button {
    &::part(native) .button-inner {
        flex-flow: column;
    }
}

1 post - 1 participant

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>