From 173ce19c7274d6287fe305b9d6470e3762c9445a Mon Sep 17 00:00:00 2001 From: Shanwis Date: Tue, 14 Jul 2026 13:54:30 +0530 Subject: [PATCH] Improve website accessibility to address Lighthouse audit findings from #7019 Signed-off-by: Shanwis --- docs/assets/scss/_styles_project.scss | 21 ++++++++++++++++++- docs/content/en/_index.html | 6 +++--- docs/layouts/partials/footer.html | 14 ++++++------- .../partials/navbar-version-selector.html | 2 +- docs/layouts/partials/navbar.html | 4 ++-- docs/layouts/partials/sidebar-tree.html | 4 ++-- docs/layouts/shortcodes/blocks/feature.html | 2 +- docs/layouts/shortcodes/blocks/value.html | 6 ++++-- 8 files changed, 40 insertions(+), 19 deletions(-) diff --git a/docs/assets/scss/_styles_project.scss b/docs/assets/scss/_styles_project.scss index 00a7680e9c..d00337d8ec 100644 --- a/docs/assets/scss/_styles_project.scss +++ b/docs/assets/scss/_styles_project.scss @@ -28,10 +28,16 @@ .long-description { font-weight: 600; - color: $gray-500; + color: #c9d1e0; margin-bottom: 2.5rem; } +.btn-secondary { + color: #1a2744; + background: #28beeb; + border-color: #28beeb; +} + .core-values { max-width: 80rem; } @@ -65,6 +71,19 @@ margin-left: -1rem; } +footer a { + text-decoration: underline; + color: inherit; +} + +.td-cover-block a { + text-decoration: underline; +} + +.td-box a { + text-decoration: underline; +} + @include media-breakpoint-down(md) { .value-title { diff --git a/docs/content/en/_index.html b/docs/content/en/_index.html index 065e98c006..9d1e0e81a0 100644 --- a/docs/content/en/_index.html +++ b/docs/content/en/_index.html @@ -15,13 +15,13 @@ diff --git a/docs/layouts/partials/footer.html b/docs/layouts/partials/footer.html index 441dd24f01..5631cf4116 100644 --- a/docs/layouts/partials/footer.html +++ b/docs/layouts/partials/footer.html @@ -5,13 +5,13 @@ {{ if .IsHome }} {{ $text_color = "text-dark" }} {{ end }} {{ $cncf_logo := "https://www.cncf.io/wp-content/uploads/2022/05/CNCF_logo_white.svg" }} {{ if .IsHome }} {{ $cncf_logo = "https://www.cncf.io/wp-content/uploads/2022/07/cncf-color-bg.svg" }} {{ end }} -
+ diff --git a/docs/layouts/partials/navbar-version-selector.html b/docs/layouts/partials/navbar-version-selector.html index d266b3946d..c51ce5d6d4 100644 --- a/docs/layouts/partials/navbar-version-selector.html +++ b/docs/layouts/partials/navbar-version-selector.html @@ -1,7 +1,7 @@ - diff --git a/docs/layouts/shortcodes/blocks/value.html b/docs/layouts/shortcodes/blocks/value.html index 2bb8512672..071604dfff 100644 --- a/docs/layouts/shortcodes/blocks/value.html +++ b/docs/layouts/shortcodes/blocks/value.html @@ -1,5 +1,6 @@ {{ $_hugo_config := `{ "version": 1 }` }} {{ $value_image := resources.GetMatch (printf "**%s*" .Params.image) }} +{{ $value_title := .Params.title }}
@@ -14,6 +15,7 @@ class="mw-100 h-auto align-self-center" width="500" height="250" + alt="{{ $value_title }}" src="{{ $image_resized_500.RelPermalink }}" srcset="{{ $image_resized_500.RelPermalink }}, {{ $image_resized_750.RelPermalink }} 1.5x, @@ -26,7 +28,7 @@ {{ end }}
-
{{ .Params.title }}
-

{{ .Inner }}

+

{{ $value_title }}

+
{{ .Inner }}