From c0bddd89c93da6a9fafee8f4e97ad78c6a640124 Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Fri, 22 Nov 2024 13:35:50 -0500 Subject: [PATCH] Improvements based on accessibility feedback (#20) --- parts/header.html | 2 +- patterns/posts-list.php | 10 +++++----- style.css | 6 +++--- templates/home.html | 35 +++++++++++++++++++++++++++++++++++ templates/index.html | 9 ++++----- templates/single.html | 10 ++++++---- theme.json | 7 +++++-- 7 files changed, 59 insertions(+), 20 deletions(-) create mode 100644 templates/home.html diff --git a/parts/header.html b/parts/header.html index 0b3f63a..9d1345d 100644 --- a/parts/header.html +++ b/parts/header.html @@ -5,7 +5,7 @@
- +
diff --git a/patterns/posts-list.php b/patterns/posts-list.php index e99608e..28acf2c 100644 --- a/patterns/posts-list.php +++ b/patterns/posts-list.php @@ -16,15 +16,15 @@ - -

- + +

+
-
- +
+
diff --git a/style.css b/style.css index cdd9765..7d6fd7b 100644 --- a/style.css +++ b/style.css @@ -262,8 +262,8 @@ input:not([type=submit]):focus-visible { /* Navigation block */ .wp-block-navigation .wp-block-navigation__submenu-container { - border-radius: var(--wp--preset--spacing--10); - padding: 12px 8px; + border-radius: var(--wp--preset--spacing--10); + padding: 12px 8px; } /* Dark mode toggle block */ @@ -273,7 +273,7 @@ input:not([type=submit]):focus-visible { } .wp-block-tabor-dark-mode-toggle__track:not(.has-background):hover { - background-color: var(--wp--preset--color--theme-4); + background-color: var(--wp--preset--color--theme-4); color: var(--wp--preset--color--theme-6); } diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..1dcef85 --- /dev/null +++ b/templates/home.html @@ -0,0 +1,35 @@ + + + +
+
+

Hi, I'm Rich Tabor

+ + +
+ + + +
+ + + + + + + +
+ + + + + + + + + +
+
+ + + \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 1dcef85..fe1af5e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,11 +2,10 @@
-
-

Hi, I'm Rich Tabor

- - -
+
+ + +
diff --git a/templates/single.html b/templates/single.html index 857d21b..6b11fbc 100644 --- a/templates/single.html +++ b/templates/single.html @@ -58,14 +58,16 @@ - -

You may also enjoy…

- + +

You may also enjoy…

+
-
+
+ +
diff --git a/theme.json b/theme.json index f0b3c73..694b784 100644 --- a/theme.json +++ b/theme.json @@ -77,7 +77,7 @@ "slug": "theme-4" }, { - "color": "color-mix(in srgb, var(--wp--preset--color--theme-1) 45%, var(--wp--preset--color--theme-6) 55%)", + "color": "color-mix(in srgb, var(--wp--preset--color--theme-1) 32%, var(--wp--preset--color--theme-6) 68%)", "name": "Theme 5", "slug": "theme-5" }, @@ -94,7 +94,7 @@ "theme-2-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 4%, var(--wp--preset--color--theme-6) 96%)", "theme-3-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 12%, var(--wp--preset--color--theme-6) 88%)", "theme-4-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 25%, var(--wp--preset--color--theme-6) 75%)", - "theme-5-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 45%, var(--wp--preset--color--theme-6) 55%)", + "theme-5-dark": "color-mix(in srgb, var(--wp--preset--color--theme-1) 50%, var(--wp--preset--color--theme-6) 50%)", "theme-6-dark": "hsl(0 0% 100% / 85%)" }, "transition": { @@ -851,6 +851,9 @@ ":hover": { "color": { "text": "var(--wp--preset--color--theme-6)" + }, + "typography": { + "textDecoration": "none" } }, "color": {