Ion-list padding bottom

#1

Hello,

I’m trying to set the ion-list padding bottom to 0. But I had no luck with that. I’ve looked up within Sass Variables, but I found no variable to change that specific.

I’ve also tried

ion-list {
  padding-bottom: 0px;
}

but had no change.

#2

I know that it could be changed if a style attr is set within the ion-list tag, but I want it to be global.

#3

Have u tried this:

<ion-list no-padding>

<ion-list>

Let me know if it works. Cheers.

#4

Hi! Thanks for the reply.

As I said - late - in the second post, I want it to be global.

#5

Just add

ion-list {
    padding: 0px !important;
}

in your global.scss file.

1 Like