Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-UDIcon returns error with color parameter #549

Closed
mattmcnabb opened this issue Jan 11, 2019 · 1 comment

Comments

Projects
None yet
3 participants
@mattmcnabb
Copy link

commented Jan 11, 2019

I attempted to use UDIcons in grid fields as such:

[PSCustomObject]@{Property1 = $null; $Property2 = New-UDIcon -Icon check -Color Green}

However, this resulted in the error:

image

Removing the -Color parameter resolved this issue. Some additional discussion around this is here

@adamdriscoll adamdriscoll added the bug label Jan 11, 2019

@adamdriscoll adamdriscoll added this to the 2.3.0 milestone Jan 11, 2019

@McAndersDK

This comment has been minimized.

Copy link
Contributor

commented Jan 22, 2019

I have the same issue, just with new-udelement

$NeglectedSmiley = @{n= 'Neglected';e = {if($_.IsNeglected) {New-UDElement -Tag i -Attributes @{class = 'fas fa-skull'; style = @{color = "red"; 'font-size' = "19px"}}}else {''}}}

note: Using font 5 css by loading the css file for it.

but it give the same error

adamdriscoll added a commit that referenced this issue Feb 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.