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

Shadow Root... how to fix ion-item padding?

$
0
0

I need to get rid of the 10px padding the class “item-inner” adds to the ion-item.
To bad it’s nested inside the shadow root and i can’t access it via the part
(Who said, btw, Shadow Parts are is a cool idea? - It’s design, we don’t need to adapt every software principle to css)

Thanks to another post I found quirk solution via type script, but it simply looks *** that mys lists are drawn first with the padding and then, after a second (I need a timeout to wait for the dom) they are redrawn again without the padding, As the lists are dynamically (I add items), it simply looks s**t.

Is there any other way to get this solved?

Without “hack”:

With the “hack”
Screenshot 2020-09-26 at 19.14.04

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles