How do I change Ionic 4's ion-range pin font and formatting?
问题 As an example, I tried this in my global.scss file: .range-pin { color: white; font-family: sans-serif; &after:{ content: " %"; } } But this has no effect. I'm sure this has something to do with shadow root but I'm not sure what the right thing to do is here. Adding ion-range .range-pin to be more specific doesn't help either. How do I achieve this change? 回答1: You are correct that the ion-range pin is part of the shadow dom, therefore we must use the SCSS variables that Ionic provides to