Skip to content

Commit

Permalink
Fixes #632
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed Feb 18, 2019
1 parent 15a62aa commit f693c82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/UniversalDashboard.UITest/Integration/Theme.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/UniversalDashboard/Controls/src/card.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down

0 comments on commit f693c82

Please sign in to comment.