diff --git a/.pages.yml b/.pages.yml index 1a5d32d..923177c 100644 --- a/.pages.yml +++ b/.pages.yml @@ -644,9 +644,9 @@ content: required: false, fields: [ - { label: "Screenshot", name: "src", type: "image" }, - { label: "Alt Text", name: "alt", type: "string" }, - { label: "Caption", name: "caption", type: "text" }, + { label: "Screenshot", name: "src", type: "image", required: false }, + { label: "Alt Text", name: "alt", type: "string", required: false }, + { label: "Caption", name: "caption", type: "text", required: false }, ], } - { diff --git a/src/_layouts/report.njk b/src/_layouts/report.njk index 7c08644..6687aa9 100644 --- a/src/_layouts/report.njk +++ b/src/_layouts/report.njk @@ -17,7 +17,7 @@ layout: base
Target
WCAG {{ targetWcagVersion }}, Level {{ targetLevel }}
Date
-
{{ date }}
+
{{ date.toLocaleString("en-CA", {year: "numeric", month: "long", day: "numeric"}) }}
{% if specialRequirements %}
Special requirements
{{ specialRequirements }}
diff --git a/src/admin/config.yml b/src/admin/config.yml index 03064de..3322e90 100644 --- a/src/admin/config.yml +++ b/src/admin/config.yml @@ -157,9 +157,9 @@ collections: required: false, fields: [ - { label: "Screenshot", name: "src", widget: "image" }, - { label: "Alt Text", name: "alt", widget: "string" }, - { label: "Caption", name: "caption", widget: "text" }, + { label: "Screenshot", name: "src", widget: "image", required: false }, + { label: "Alt Text", name: "alt", widget: "string", required: false }, + { label: "Caption", name: "caption", widget: "text", required: false }, ], } - { diff --git a/src/assets/styles/report.css b/src/assets/styles/report.css index fcbb271..44ed6bb 100644 --- a/src/assets/styles/report.css +++ b/src/assets/styles/report.css @@ -262,6 +262,10 @@ pre[class*='language-'] { text-decoration: none; } +.wcag-link:visited { + color: #fff; +} + .external { clip: rect(0 0 0 0); height: 1px; diff --git a/src/pages.njk b/src/pages.njk index ce5fabc..8ce6119 100644 --- a/src/pages.njk +++ b/src/pages.njk @@ -137,9 +137,9 @@ content: required: false, fields: [ - { label: "Screenshot", name: "src", type: "image" }, - { label: "Alt Text", name: "alt", type: "string" }, - { label: "Caption", name: "caption", type: "text" }, + { label: "Screenshot", name: "src", type: "image", required: false }, + { label: "Alt Text", name: "alt", type: "string", required: false }, + { label: "Caption", name: "caption", type: "text", required: false }, ], } - {