Skip to content

Commit cc810b5

Browse files
authored
Merge pull request #1168 from ascholerChemeketa/accessibility-color-updates
Accessibility color updates
2 parents c6b66f8 + cfa3ea2 commit cc810b5

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

bases/rsptx/interactives/ptxrs-bootstrap.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
--links: #7289da;
4747
--bodyFont: var(--body-text-color, #99aab5);
4848
--tooltip: #000000;
49-
--grayToWhite: #aaa;
49+
--grayToWhite: #e1e1e1; /* AA compliant against known backgrounds */
5050
--navbar: #3d3d3d;
5151
--navbarFont: #ffffff;
5252
--navbarFontHover: #d6d6d6;

bases/rsptx/interactives/runestone/common/css/runestone-custom-sphinx-bootstrap.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ div.assignment-nav {
8686
border-width: 1px;
8787
padding-bottom: 5px;
8888
padding-top: 5px;
89+
}
8990

91+
div.assignment-nav a {
92+
/* use link color from PTX if available */
93+
color: var(--link-alt-text-color, var(--links));
94+
/* match PTX link styling and differentiate from standard text for AA compliance */
95+
font-weight: 700;
9096
}
9197

9298
/* custom modification of basic.css for color-contrast (AA compliant) */

0 commit comments

Comments
 (0)