Jump to content

Module talk:Adjacent stations/BART

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mackensen (talk | contribs) at 04:00, 5 October 2024 (Adding overcolored template: Reply). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Adding overcolored template

I am adding the {{overcolored}} template to the documentation for this module.

I believe the following lines of code are causing BART station infoboxes to display section titles which violate WCAG 2.1 AA accessibility rules for contrast:

["header background color"] = "0099d8", ["header text color"] = "ffffff",

I believe more accessible code would be:

["header background color"] = "0099d8", ["header text color"] = "000000",

Thisisnotatest (talk) 03:50, 5 October 2024 (UTC)[reply]

That change would improve color contrast from 3.2 to 6.54, which meets WCAG 2.1 AA but maybe not AAA. I suspect that outcome feels counterintuitive for folks with good eyesight. I note that going with the default colors (removing both customizations) would improve contrast to 18.26. Mackensen (talk) 04:00, 5 October 2024 (UTC)[reply]