Skip to content

Commit

Permalink
fix: format date
Browse files Browse the repository at this point in the history
fix: screenshots field should be optional
fix: resolve contrast issue for visited WCAG links
  • Loading branch information
greatislander committed Mar 12, 2024
1 parent 933da65 commit 98823c0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
}
- {
Expand Down
2 changes: 1 addition & 1 deletion src/_layouts/report.njk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ layout: base
<dt>Target</dt>
<dd>WCAG {{ targetWcagVersion }}, Level {{ targetLevel }}</dd>
<dt>Date</dt>
<dd>{{ date }}</dd>
<dd>{{ date.toLocaleString("en-CA", {year: "numeric", month: "long", day: "numeric"}) }}</dd>
{% if specialRequirements %}
<dt>Special requirements</dt>
<dd>{{ specialRequirements }}</dd>
Expand Down
6 changes: 3 additions & 3 deletions src/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
}
- {
Expand Down
4 changes: 4 additions & 0 deletions src/assets/styles/report.css
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ pre[class*='language-'] {
text-decoration: none;
}

.wcag-link:visited {
color: #fff;
}

.external {
clip: rect(0 0 0 0);
height: 1px;
Expand Down
6 changes: 3 additions & 3 deletions src/pages.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
}
- {
Expand Down

0 comments on commit 98823c0

Please sign in to comment.