UDCard vs UDPaper behaviour

avatar
(anonymous user)

Hey All,
Not sure if this is my understanding or a bug, but I find the behaviour of New-UDPaper compared to New-UDCard a bit odd. Hopefully someone can shed some light.

Two examples:

    New-UDCard -Content {
        New-UDTypography -Text "Test123"
        New-UDHtml -Markup "<br><br>"
        New-UDTypography -Text "Test456"
    }

    New-UDPaper -Elevation 3 -Content {
        New-UDTypography -Text "Test123"
        New-UDHtml -Markup "<br><br>"
        New-UDTypography -Text "Test456"
    }


Now here’s what the output looks like:

d2de0f45a9b36a29c2be0ae97dbd9295cf8d36e7


I wa going to use a UDPaper, to drop the spacing at the top of the card commonly used for titles. But when I use UD Paper, my components don’t render in the expected order, and my BR’s are being displayed after both new-udtypography’s rather than inbetween.

I’m running PSU Version 4.2.21

d2de0f45a9b36a29c2be0ae97dbd9295cf8d36e7.png

All Comments (1)

avatar

And it gets a little weirder with this example:

 New-UDCard -Content {
        New-UDElement -Tag div -Attributes @{align="center"} -Content {
            New-UDTypography -Text "Test123"
            New-UDHtml -Markup "<br><br>"
            New-UDTypography -Text "Test456"
        }
    }

    New-UDPaper -Elevation 3 -Content {
        New-UDElement -Tag div -Attributes @{align="center"} -Content {
            New-UDTypography -Text "Test123"
            New-UDHtml -Markup "<br><br>"
            New-UDTypography -Text "Test456"
        }
    }




6d1c86fbdd1f4a4f54c086d21a630bb2fc2e5852

6d1c86fbdd1f4a4f54c086d21a630bb2fc2e5852.png