I am working on a form for a customer, the intent being someone can fill in the form to request a new VM and the form submission kicks off my (already completed) build automation. I am new to UD, and things are for the most part going well, but I have a question surrounding font sizes. My form is basically a single UDCard, with the elements I need on it, like so:
$aParams = <pull info from external source>
$myDash = New-UDDashboard -Title "Server Request Form" -Content {
New-UDHeading -Text "Server Request Form" -Size 1
New-UDCard -Title "" -Content {
New-UDInput -Title "" -Id "Form" -Content {
New-UDInputField -Type textbox -Name 'Description' -Placeholder 'Server Description'
New-UDInputField -Type textbox -Name 'Project' -Placeholder 'Project#'
New-UDInputField -Type date -Name "GoLive" -Placeholder "Go-Live Date"
New-UDInputField -Type textbox -Name 'LocalAdmins' -Placeholder "Local Admins"
New-UDInputField -Type select -Name "LOB" -Placeholder "Line Of Business" -Values $aLOB
New-UDInputField -Type select -Name 'ENV' -Placeholder "Environment" -Values $aEnv
New-UDInputField -Type select -Name 'Domain' -Placeholder "Domain" -Values @("Parent Domain", "Child Domain")
New-UDInputField -Type select -Name 'Groups' -Placeholder "Ivanti Group" -Values $aGroups
New-UDInputField -Type checkbox -Name 'SQL' -Placeholder "SQL"
New-UDInputField -Type checkbox -Name 'Posix' -Placeholder "Posix"
} -Endpoint {
if ($Description -match "null") {
New-UDInputAction -Toast "Description is blank" -Duration 10000
}
if ($Project -match "null") {
New-UDInputAction -Toast "Project is blank" -Duration 10000
}
}
}
}
Start-UDDashboard -Dashboard $myDash -Port 666 -AdminMode
The form works well, but I received a request to increase font size. However, if I specify -TextSize Large in my call to New-UDCard, the Text in the Select element seems no larger but appears to overlap with the Title of that element.
I have tried a couple of different ways (creating a GRID to hold the elements, etc.) but have not had any luck. I did stumble on something in the documentation about creating a theme, the fourth example of which shows using raw CSS to specify font size in px, but could not get that to work for me.
Just wondering if there is something stupid simple I am missing for more granular control of font sizes within the card.