Skip to content

A programming framework for agentic AI

Fix high contrast mode focus (#5796)

peterychang3855989543f8
diff --git a/python/packages/autogen-core/docs/src/_static/custom.css b/python/packages/autogen-core/docs/src/_static/custom.css
index b23c3d03c..243fb7d43 100644
--- a/python/packages/autogen-core/docs/src/_static/custom.css
+++ b/python/packages/autogen-core/docs/src/_static/custom.css
@@ -32,11 +32,33 @@ html[data-theme="dark"] {
color: white;
text-shadow: 0.5px 0 0 currentColor;
}
-
nav.bd-links .current>a {
box-shadow: inset 1px 0 0 var(--pst-color-primary);
}
-
+@media (forced-colors: active) {
+ /* Top breadcrumbs navigation (ie: Home > Core > ...) */
+ .bd-breadcrumbs .breadcrumb-item > a:focus-visible{
+ border: 2px solid var(--pst-color-primary);
+ }
+
+ /* Left sidebar */
+ nav.bd-links .navbar-nav .toctree-l1>a:focus-visible {
+ border: 2px solid var(--pst-color-primary);
+ }
+ nav.bd-links .current>a {
+ box-shadow: none;
+ border-left: 4px solid var(--pst-color-primary) !important;
+ }
+
+ /* Right sidebar */
+ .bd-sidebar-secondary .sidebar-secondary-items .nav-item .active {
+ box-shadow: none;
+ border-left: 5px solid var(--pst-color-primary) !important;
+ }
+ .bd-sidebar-secondary .sidebar-secondary-items .nav-item>a:focus-visible {
+ border: 2px solid var(--pst-color-primary);
+ }
+}
html[data-theme="light"] .bd-header {
border-bottom: 1px solid var(--pst-color-border);
}
@@ -74,6 +96,7 @@ html[data-theme="light"] .bd-header {
transform: translateY(0);
}
.bd-content .sd-tab-set>label {
+ border: none;
background-color: transparent;
font-weight: 500;
}