Skip to content

Commit

Permalink
changed report colors to conform to WCAG 2 AA thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaines1 committed Nov 24, 2024
1 parent 9680fb1 commit cefafce
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function New-Report {
# Finish building the html report
$Title = "$($FullName) Baseline Report"
$AADWarning = "Exclusions must only be used if they are approved within an organization's security risk acceptance process.
Please reference <a href=`"$($ScubaGitHubUrl)/blob/v$($SettingsExport.module_version)/docs/configuration/configuration.md#entra-id-configuration`" target=`"_blank`">this section in the README file</a>
Please reference <a href=`"$($ScubaGitHubUrl)/blob/main/docs/configuration/configuration.md#entra-id-configuration`" target=`"_blank`" class=`" aad-link`">this section in the README file</a>
file for a list of the policies that accept exclusions and the instructions for setting up exclusions in the configuration file.
<i>Exclusions can introduce grave risks to your system and must be managed carefully.</i>"
$NoWarning = "<br/>"
Expand Down
1 change: 1 addition & 0 deletions PowerShell/ScubaGear/Modules/CreateReport/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const colorRows = () => {
}
else if (rows[i].children[statusCol].innerHTML === "Fail") {
rows[i].style.background = "var(--test-fail)";
rows[i].style.color = "var(--test-error-color)";
}
else if (rows[i].children[statusCol].innerHTML === "Warning") {
rows[i].style.background = "var(--test-warning)";
Expand Down
21 changes: 19 additions & 2 deletions PowerShell/ScubaGear/Modules/CreateReport/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ html[data-theme='dark'] {
--note-color: #ee4e04;
--header-bottom: rgb(221, 221, 221);
--link-color: #85B065;
--unvisited-link-color: #0092CC;
--unvisited-link-color: #E6F598;
--text-color: #bdbdbd;
--uuid-color: #999999;
--border-color: #7b7b7b;
Expand Down Expand Up @@ -76,6 +76,23 @@ h4 {
margin-bottom: 0.313em;
}

h4 .aad-link {
font-family: Arial, Helvetica, sans-serif;
color: var(--unvisited-link-color);
text-decoration: underline;
}

h4 .aad-link:visited {
font-family: Arial, Helvetica, sans-serif;
color: var(--link-color);
}

h4 .aad-link:hover {
font-family: Arial, Helvetica, sans-serif;
color: var(--link-color);
text-decoration: none;
}


.links {
display: flex;
Expand Down Expand Up @@ -232,7 +249,7 @@ th.conditions {
}

#toggle-text {
color: #404040;
color: var(--text-color);
margin: 0.313em 3.125em;
font-family: Arial, Helvetica, sans-serif;
font-size: 0.875em;
Expand Down
Binary file not shown.

0 comments on commit cefafce

Please sign in to comment.