I have 2 questions.
- I understand the reasoning behind opting for Shadow DOM based CSS (encapsulation). But why don’t you expose all the parts of the components? Why do you have to only expose specific parts, which I can customize then if needed, but it is not possible to customize inside shadow dom parts which don’t have :
:part()
on them
I keep being blocked again and again by this reason, and I don’t understand what is the problem of exposing all parts of inner ionic component to customization with ::part()
attributes, please somebody explain to me
- Second question stems from the first.
As you can see on the screen shot, I need to center the inner container, which is hidden inside the shadow dom and has a class of “radio-wrapper”. But I cannot customize this part - because there is no::part()
on it (no pun intended)
Then, in documentation they say we havejustify
attribute (just likejustify-content
- but it’s not), which has 3 options:start
,end
andspace-between
.
And it does work - except I needcenter
- which is arguably one of the most needed, and it’s not there? Why is it not there? I just tried via devtools addingjustify-content: center;
- and it centers it perfectly, yet this option is unavailable forjustify
attribute.
Please, somebody help me or explain the reasoning behind it, I am going insane with this framework