вітання! yeah. i'm actually working on that on another side-project for my University challenge.
so when i stumbled on this anomaly with the :after putting it's content on a new line... i had to stamp on the brakes and solve that problem because a lot of the theming uses several more 'advanced' CSS attributes. kinda letting my webDev background out to play...
EDIT: of course that also means this group would have to PLAN something... ;)
i do NOT need help with CSS. ever. i need help with CSS in Ignition. the :after modification in the real world does NOT add a new line (in fact, you have to take some degree of pains to make it do so). so i need help understanding why it DOES in Ignition. this is a very simple fix for an otherwise pain in the ass problem.
i am not interested in placing text somewhere else. i want to know a solution to this problem. i am fully aware i could put it elsewhere. but that is not what i am tasked with doing. i don't deliver kinda what the client wants. i deliver exactly what the client wants. so knowing what the software can and can't do is critical. this is something the software kinda does. which baffles me. why not just do it properly? completely?
There is no difference, the browser is still responsible for interpreting the style.
Okay, great, but sometimes the client doesn't know what they're asking for. Oh well.
As for your problem, perhaps the new line isn't being inserted by CSS, but is instead part of the value? If I knew what components you were needing it would be a whole lot easier to mock something up and see if I could help arrive at a solution. As it is, I can't, and I won't guess.
Examine the element in the browser. You'll notice that the Label component displays the internal text within a column-oriented flex display. As ::after adds a new pseudo element after the targeted element, you are in essence adding a new element into a column-oriented flex display, resulting in the new element being below.
The Label does this because that was the best option we had for placing Label text in the vertical center of the component; without this setting, all Labels would always display their text along the very bottom - unless users applied complicated stylings to every Label themselves.
okay. now i understand. and i understand why you did it that way. thank you. i'll just have to create a script workaround, which is sub-optimal, but certainly not overly complicated.
You can use .psc-temp-celciusUnits span::after to fix this flex issue:after, if its the label component you are using
You have to use the inspector to see what inner html components igntions usees, because its usually not just one html element that gets important and they all have a bunch of styling
yeah. i spent all day yesterday just deep-diving how the HTML is actually structured. i am glad i did. i did not expect it to be so... layered. so, yeah. i came to a similar solution. but thanks for confirming it. i always get a bit nervous positing solutions since this forum is full of very talented and seasoned people.