umb-ufm-render turns simple text into paragraphs
# contributing
s
I noticed that property labels now use umb-ufm-render, which (because of the nature of markdown I guess), turns simple text into paragraphs. This makes it have a top and bottom margin from the user agent stylesheet. It looks wrong to me, but is it just me? Or should we make it not turn text into paragraphs, or add some css to combat the user agent? https://cdn.discordapp.com/attachments/1295326965385003019/1295326968320884766/image.png?ex=670e3ebf&is=670ced3f&hm=8c99237fb4cd9f3e836cc2e2461e0b2d580033dac75aa48f3e28728a2d0ad6ed&
j
While this works well for new lines, which turns in to paragraphs, and is more markdown-correct, I definitely see the issue with the first paragraph. We can fix that with some CSS to disable the padding on the :first-child or something like that, I'm sure.
s
Or maybe just remove margin all together if the paragraph is the only child of umb-ufm-render?
How about adding this to umb-ufm-render?
Copy code
css
            :host > :first-child {
                margin-block-start: 0;
            }

            :host > :last-child {
                margin-block-end: 0;
            }
j
yeah, not bad
8 Views