From 73f26792abca20879348650a6206e507e4a052e9 Mon Sep 17 00:00:00 2001
From: peterychang <49209570+peterychang@users.noreply.github.com>
Date: Tue, 25 Feb 2025 14:19:14 -0500
Subject: [PATCH] Fix accessibility issue 14 for visual accessibility (#5709)
## Why are these changes needed?
Fixes `(14) Ensures the contrast between foreground and background
colors meets WCAG 2 AA minimum contrast ratio thresholds`
Note: the color values don't output at the exact values on the
stylesheet. For example, the value `#1774E5` evaluates to `#2274E0` by
the Accessibility Insights app.
## Related issue number
https://github.com/microsoft/autogen/issues/5633
## Checks
- [ ] I've included any doc changes needed for
. See
to
build and test documentation locally.
- [ ] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [ ] I've made sure all auto checks have passed.
---
.../autogen-core/docs/src/_static/custom.css | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/python/packages/autogen-core/docs/src/_static/custom.css b/python/packages/autogen-core/docs/src/_static/custom.css
index 3b32374aa7..a8e4745146 100644
--- a/python/packages/autogen-core/docs/src/_static/custom.css
+++ b/python/packages/autogen-core/docs/src/_static/custom.css
@@ -4,18 +4,18 @@
html[data-theme="light"] {
--pst-color-primary: hsl(222.2 47.4% 11.2%);
- --pst-color-secondary: #007bff;
- --pst-color-secondary-bg: #007bff;
- --pst-color-accent: #007bff;
+ --pst-color-secondary: #1774E5;
+ --pst-color-secondary-bg: #1774E5;
+ --pst-color-accent: #1774E5;
--sd-color-secondary-highlight: #0062cc;
--pst-color-shadow: rgba(0, 0, 0, 0.0);
}
html[data-theme="dark"] {
--pst-color-primary: hsl(213 31% 91%);
- --pst-color-secondary: #007bff;
- --pst-color-secondary-bg: #007bff;
- --pst-color-accent: #007bff;
+ --pst-color-secondary: #017FFF;
+ --pst-color-secondary-bg: #017FFF;
+ --pst-color-accent: #017FFF;
--sd-color-secondary-highlight: #0062cc;
--pst-color-shadow: rgba(0, 0, 0, 0.0);
}