From 038227d3295243468fdf41d5a5337a7bcdd62768 Mon Sep 17 00:00:00 2001 From: rohitbharmal Date: Thu, 19 Feb 2026 15:37:09 +0530 Subject: [PATCH 1/2] website: Fix accessibility issues to match a11y standards - Add alt attributes to images (nav event image, CNCF logos) - Give links discernible names (navbar brand, scroll-to-overview, aria-labels) - Improve contrast for navbar badges and adopters button - Make links distinguishable without color (underlines, focus-visible) - Fix heading order (section headings h3 -> h2) Closes: #4312 Signed-off-by: rohitbharmal Co-authored-by: Cursor Signed-off-by: rohitbharmal --- assets/scss/_styles_project.scss | 49 ++++++++++++++++++++++++++++++++ config.toml | 2 +- content/en/_index.html | 18 ++++++------ layouts/partials/navbar.html | 2 +- 4 files changed, 60 insertions(+), 11 deletions(-) diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index 45f69610e8..fef2ab26db 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -895,6 +895,55 @@ nav.foldable-nav { a > code { color: unset; } + + // a11y: links distinguishable without color alone (underline, focus) + a:not(.btn) { + text-decoration: underline; + text-underline-offset: 0.15em; + + &:focus-visible { + outline: 2px solid currentColor; + outline-offset: 2px; + } + } +} + +// a11y: same for homepage content sections (links not relying on color only) +#overview a:not(.btn), +#community a:not(.btn), +#pageContent a:not(.btn) { + text-decoration: underline; + text-underline-offset: 0.15em; + + &:focus-visible { + outline: 2px solid currentColor; + outline-offset: 2px; + } +} + +// -------------------------------------------------- +// a11y: sufficient contrast for navbar badges and adopters button +// -------------------------------------------------- +.td-navbar .badge-warning { + background-color: #b38600; + color: #fff; +} + +#adopters .btn-outline-primary { + color: $primary; + border-color: $primary; + font-weight: 500; + + &:hover { + color: #fff; + background-color: $primary; + border-color: $primary; + } + + &:focus-visible { + outline: 2px solid $primary; + outline-offset: 2px; + } } // -------------------------------------------------- diff --git a/config.toml b/config.toml index cbad9feedc..a394756a99 100644 --- a/config.toml +++ b/config.toml @@ -69,7 +69,7 @@ ignoreFiles = [] [[menu.main]] name = "" weight = -1000 - pre = "March 23rd, 2026Amsterdam, Netherlands" + pre = "Cloud Native AI 2025 eventMarch 23rd, 2026Amsterdam, Netherlands" post = "" url = "https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/co-located-events/cloud-native-ai-kubeflow-day/" # [[menu.main]] diff --git a/content/en/_index.html b/content/en/_index.html index 5bfad5c681..cfc74357ff 100644 --- a/content/en/_index.html +++ b/content/en/_index.html @@ -19,8 +19,8 @@ @@ -28,7 +28,7 @@
-

+

Open Source. Battle-Tested. Community Built.

@@ -62,7 +62,7 @@

-

+

What is Kubeflow?

@@ -81,7 +81,7 @@

-

+

Trusted by

@@ -129,7 +129,7 @@

-

+

Kubeflow Projects

@@ -290,7 +290,7 @@

-

+

Join our Community

@@ -306,13 +306,13 @@

Cloud Native Computing Foundation Logo Cloud Native Computing Foundation Logo

diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 075778e402..31b845320e 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -6,7 +6,7 @@