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

Padding classes not working on ion-text?

$
0
0

@honzapoboril wrote:

Is it possible in ion-content to have some elements with and without padding? In my tests class="ion-padding-horizontal" or class="ion-padding" woks only on <ion-content> and <ion-slides>, not on <ion-text>.

<ion-content>
    <ion-slides>
      ...
    </ion-slides>

    <ion-text
      ...
      class="ion-padding-horizontal"
    />

This will render as:

<ion-content class="ion-padding-horizontal">
    <ion-slides>
      ...
    </ion-slides>

    <ion-text
      ...
    />

This will render as:

<ion-content>
    <ion-slides class="ion-padding-horizontal">
      ...
    </ion-slides>

    <ion-text
      ...
    />

This will render as:

CSS is included like this:

import '@ionic/core/css/core.css'
import '@ionic/core/css/ionic.bundle.css'

Versions:
@ionic/core: 5.0.5
@ionic/vue: 0.0.9
vue: 2.6.11

Project is available here: https://jeruzalem.poboril.cz/#/page/339249

Thank you for help :slight_smile:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70442

Trending Articles



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