From d89044b1f0675fc6573e5b50d36ee18dfdb29383 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 17 Aug 2020 22:32:37 -0400 Subject: [PATCH 1/4] Enclose utility classes in brackets --- src/_includes/checklist.njk | 6 +++--- src/_includes/featured.njk | 6 +++--- src/_includes/heroes/home.njk | 6 +++--- src/_includes/heroes/primary-nav.njk | 2 +- src/_includes/highlight.njk | 8 ++++---- src/_includes/homepage/featured-resource.njk | 4 ++-- src/_includes/homepage/spotlight.njk | 4 ++-- src/_includes/layouts/featured.njk | 2 +- src/_includes/layouts/post.njk | 4 ++-- src/_includes/linkroll.njk | 4 ++-- src/_includes/nav/copyright-back-to-top.njk | 2 +- src/_includes/nav/footer.njk | 10 +++++----- src/_includes/nav/recommended-reading.njk | 4 ++-- src/_includes/nav/skipnav.njk | 2 +- src/_includes/person.njk | 8 ++++---- src/_includes/post.njk | 4 ++-- src/_includes/resource.njk | 6 +++--- src/checklist.njk | 6 +++--- src/contact.njk | 2 +- src/newsletter.njk | 2 +- src/team.njk | 8 ++++---- 21 files changed, 50 insertions(+), 50 deletions(-) diff --git a/src/_includes/checklist.njk b/src/_includes/checklist.njk index b6223ade5..f719e9d89 100755 --- a/src/_includes/checklist.njk +++ b/src/_includes/checklist.njk @@ -24,13 +24,13 @@

- {{ wcag }} + {{ wcag }}

-

+

{{ description }}

- Featured Post. - {{ post.data.category }}: - {{ post.data.title }} + Featured Post. + {{ post.data.category }}: + {{ post.data.title }}

diff --git a/src/_includes/heroes/home.njk b/src/_includes/heroes/home.njk index 111e68a45..db5c54c32 100644 --- a/src/_includes/heroes/home.njk +++ b/src/_includes/heroes/home.njk @@ -1,7 +1,7 @@
-

- a11y stands for accessibility +

+ a11y stands for accessibility

The A11Y Project is a community-driven effort to make digital accessibility easier. @@ -10,5 +10,5 @@

- How do I get started? + How do I get started?

diff --git a/src/_includes/heroes/primary-nav.njk b/src/_includes/heroes/primary-nav.njk index 742a6e95e..79a45a083 100644 --- a/src/_includes/heroes/primary-nav.njk +++ b/src/_includes/heroes/primary-nav.njk @@ -1,5 +1,5 @@
-
+

{{ hero.title }}

diff --git a/src/_includes/highlight.njk b/src/_includes/highlight.njk index 3c1d91c98..9c3284001 100755 --- a/src/_includes/highlight.njk +++ b/src/_includes/highlight.njk @@ -1,7 +1,7 @@

+ class="[ u-font-size-body u-text-transform-uppercase ] [ c-banner {% if templateClass == "template-posts"%}c-banner--post{% else %}c-banner--resource{% endif %} ]"> @@ -16,16 +16,16 @@ {% endif %}

{% if templateClass == "template-resources" %} -

+

{{ featuredResource.additional }}

{% endif %} {% if templateClass == "template-posts" %} -

+

{% if post.data.author%} by {{ post.data.author }}{% endif %}

{% endif %} -

+

{% if templateClass == "template-posts" %} {{ post.data.description | safe }} {% elif templateClass == "template-resources" %} diff --git a/src/_includes/homepage/featured-resource.njk b/src/_includes/homepage/featured-resource.njk index 196b49e02..773fb0ba8 100644 --- a/src/_includes/homepage/featured-resource.njk +++ b/src/_includes/homepage/featured-resource.njk @@ -5,10 +5,10 @@ alt="{{ featuredResource.alt }}" src="img/resources/{{ featuredResource.image }}" />

-

+

{{ featuredResource.author }}

-

+

{{ featuredResource.title }}

diff --git a/src/_includes/homepage/spotlight.njk b/src/_includes/homepage/spotlight.njk index c166fb777..89ba0722e 100644 --- a/src/_includes/homepage/spotlight.njk +++ b/src/_includes/homepage/spotlight.njk @@ -5,10 +5,10 @@ onclick="location.href='/spotlight/{{ spotlight.name | slugify | url }}'" src="img/spotlight/{{ spotlight.image }}" />

-

+

{{ spotlight.name }}

-

+

{{ spotlight.role }}

diff --git a/src/_includes/layouts/featured.njk b/src/_includes/layouts/featured.njk index e2161877c..ec127bfec 100755 --- a/src/_includes/layouts/featured.njk +++ b/src/_includes/layouts/featured.njk @@ -8,7 +8,7 @@ templateClass: template-generic

- {{ category }}: + {{ category }}: {{ title }}

diff --git a/src/_includes/layouts/post.njk b/src/_includes/layouts/post.njk index d4c0a602e..228274d71 100755 --- a/src/_includes/layouts/post.njk +++ b/src/_includes/layouts/post.njk @@ -7,7 +7,7 @@ templateClass: template-post
- diff --git a/src/_includes/nav/footer.njk b/src/_includes/nav/footer.njk index c9cba1cc1..e01f07cde 100644 --- a/src/_includes/nav/footer.njk +++ b/src/_includes/nav/footer.njk @@ -1,7 +1,7 @@
@@ -51,7 +51,7 @@ templateClass: template-checklist

- AAA: Ideal Support + AAA: Ideal Support This is typically reserved for parts of websites and web apps that serve a specialized audience.

diff --git a/src/contact.njk b/src/contact.njk index 31b29d8e7..c498e6cf0 100755 --- a/src/contact.njk +++ b/src/contact.njk @@ -50,7 +50,7 @@ templateClass: template-simple type="email" name="email" required /> -

+

We value your privacy and will not share this information with third parties.

diff --git a/src/newsletter.njk b/src/newsletter.njk index 481df1280..2f452d8ff 100755 --- a/src/newsletter.njk +++ b/src/newsletter.njk @@ -36,7 +36,7 @@ templateClass: template-simple

- Powered by Buttondown. + Powered by Buttondown.

diff --git a/src/team.njk b/src/team.njk index c17c6bef3..3712c1b04 100755 --- a/src/team.njk +++ b/src/team.njk @@ -21,14 +21,14 @@ templateClass: template-team

-

+

Contributors

A special thank you to everyone who has helped to make this site better!

-

+

Creator

@@ -40,7 +40,7 @@ templateClass: template-team {% include "person.njk" %} {% endfor %} -

+

Maintainers

@@ -52,7 +52,7 @@ templateClass: template-team {% include "person.njk" %} {% endfor %} -

+

Alumni

From f0ee47eb3ed72c8501dcb1d8ed4e581a2940438e Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 18 Aug 2020 00:05:31 -0400 Subject: [PATCH 2/4] Add background color utility classes --- src/404.njk | 2 +- src/_includes/heroes/home.njk | 2 +- src/_includes/nav/primary.njk | 4 ++-- src/_includes/nav/recommended-reading.njk | 4 ++-- src/checklist.njk | 2 +- src/contact.njk | 2 +- src/contribute.njk | 8 ++++---- src/css/components/_c-a11y-summary.scss | 1 - src/css/components/_c-contribute.scss | 1 - src/css/components/_c-logo.scss | 1 - src/css/components/_c-recommended-reading.scss | 1 - src/css/components/_c-simple.scss | 1 - src/css/components/_c-wcag-explanation.scss | 1 - src/newsletter.njk | 2 +- src/subscribed.njk | 2 +- src/thanks.njk | 2 +- src/unsubscribed.njk | 2 +- 17 files changed, 16 insertions(+), 22 deletions(-) diff --git a/src/404.njk b/src/404.njk index 7fe65fa71..078b25512 100755 --- a/src/404.njk +++ b/src/404.njk @@ -12,7 +12,7 @@ eleventyExcludeFromCollections: true ---

-
+

{{ title }}

diff --git a/src/_includes/heroes/home.njk b/src/_includes/heroes/home.njk index db5c54c32..f175b7dfc 100644 --- a/src/_includes/heroes/home.njk +++ b/src/_includes/heroes/home.njk @@ -1,5 +1,5 @@
-
+

a11y stands for accessibility

diff --git a/src/_includes/nav/primary.njk b/src/_includes/nav/primary.njk index 29ce0fe81..4de2e81e2 100644 --- a/src/_includes/nav/primary.njk +++ b/src/_includes/nav/primary.njk @@ -3,11 +3,11 @@