From f693c826183812eebdab594d79ec96a66dd22aa7 Mon Sep 17 00:00:00 2001 From: Adam Driscoll Date: Mon, 18 Feb 2019 10:21:22 -0600 Subject: [PATCH] Fixes #632 --- src/UniversalDashboard.UITest/Integration/Theme.Tests.ps1 | 6 +++--- src/UniversalDashboard/Controls/src/card.ps1 | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/UniversalDashboard.UITest/Integration/Theme.Tests.ps1 b/src/UniversalDashboard.UITest/Integration/Theme.Tests.ps1 index 753e6857..7ecbfa3a 100644 --- a/src/UniversalDashboard.UITest/Integration/Theme.Tests.ps1 +++ b/src/UniversalDashboard.UITest/Integration/Theme.Tests.ps1 @@ -47,7 +47,7 @@ Describe "Theme" { It "should generate the correct theme" { $Theme = Invoke-WebRequest http://localhost:10001/api/internal/dashboard/theme -WebSession $ud - $Theme.Content | Should be ".ud-card {`r`n`tcolor : #999999 !important;`r`n`tbackground-color : #123123 !important;`r`n}`r`n" + $Theme.Content.Contains(".ud-card {`r`n`tcolor : #999999;`r`n`tbackground-color : #123123;`r`n}`r`n") | should be $true } Stop-UDDashboard -Server $Server @@ -71,7 +71,7 @@ Describe "Theme" { It "should generate the correct theme" { $Theme = Invoke-WebRequest http://localhost:10001/api/internal/dashboard/theme -WebSession $ud - $Theme.Content | Should be ".ud-card {`r`n`tbackground-color : #123123 !important;`r`n`tcolor : #999999 !important;`r`n}`r`n" + $Theme.Content.Contains(".ud-card {`r`n`tbackground-color : #123123;`r`n`tcolor : #999999;`r`n}") | should be $true } Stop-UDDashboard -Server $Server @@ -95,7 +95,7 @@ Describe "Theme" { It "should generate the correct theme" { $Theme = Invoke-WebRequest http://localhost:10001/api/internal/dashboard/theme -WebSession $ud - $Theme.Content | Should be ".ud-dashboard {`r`n`tbackground-color : #234234 !important;`r`n`tcolor : #959595 !important;`r`n}`r`n.ud-table {`r`n`tbackground-color : #123123 !important;`r`n}`r`n" + $Theme.Content.Contains(".ud-dashboard {`r`n`tbackground-color : #234234;`r`n`tcolor : #959595;`r`n}`r`n.ud-table {`r`n`tbackground-color : #123123;`r`n}`r`n") | should be $true } Stop-UDDashboard -Server $Server diff --git a/src/UniversalDashboard/Controls/src/card.ps1 b/src/UniversalDashboard/Controls/src/card.ps1 index 26a88802..4fd02c1f 100644 --- a/src/UniversalDashboard/Controls/src/card.ps1 +++ b/src/UniversalDashboard/Controls/src/card.ps1 @@ -13,9 +13,9 @@ function New-UDCard { [Parameter(ParameterSetName = 'text')] [string]$Text, [Parameter()] - [UniversalDashboard.Models.DashboardColor]$BackgroundColor = 'white', + [UniversalDashboard.Models.DashboardColor]$BackgroundColor, [Parameter()] - [UniversalDashboard.Models.DashboardColor]$FontColor = 'black', + [UniversalDashboard.Models.DashboardColor]$FontColor, [Parameter()] [UniversalDashboard.Models.Link[]]$Links, [Parameter()]