Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ion-option-button width?

$
0
0

If anyone is going through this question (just like I did):

In order to achieve what has been asked above:

HTML

<ion-option-button class="custom-option-btn">
<p>Button Text</p>
</ion-option-button>

SASS

.custom-option-btn {
    /* replace 90px by your target width */
    min-width: 90px;

    p {
        color: #fff;
        /* here's the trick to center the text: */
        width: 100%;
        text-align: center;
    }
}

Viewing all articles
Browse latest Browse all 228595

Trending Articles



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