Unable to get the icon to match up with the them in New-UDIconButton

Product: PowerShell Universal
Version: 3.7.14

Does anyone know how to get the color of the icon inside the button to match up with the theme? I don’t want to put ‘red’ or ‘blue’ or ‘someColorName’ in the -Color

New-UDCardHeader -Title 'Manual Markdown Instructions' -Action (
    New-UDIconButton -Icon (
        New-UDStyle -Sx @{Color = 'primary.main' } -Content {
            New-UDIcon -Icon QuestionCircle
        }
    ) -OnClick {
        Invoke-UDRedirect -Url 'https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet' -OpenInNewWindow
    }
)
1 Like