From 63c33ee6ee958ccc61baef18a864d51c5dcc28d2 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Thu, 23 Sep 2021 14:31:24 -0400 Subject: [PATCH] LP#1942240 Insufficient color contrast in boostrap forms Overrides the bootstrap form-control border color. Also changes the border_standard color in colors.tt2 which is used for the border around some form elements. After this patch is applied the color ratio is 3.54:1 Signed-off-by: Garry Collum Signed-off-by: Terran McCanna Signed-off-by: Jane Sandberg --- Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 | 4 ++++ Open-ILS/src/templates-bootstrap/opac/parts/css/colors.tt2 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 b/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 index 49a989d8ff..06c67ecac7 100755 --- a/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 @@ -4045,3 +4045,7 @@ padding: 15px; #course_material_table td, #course_material_table th { padding: 4px; } + +.form-control { + border: 1px solid [% css_colors.border_standard %]; +} diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/css/colors.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/css/colors.tt2 index 6367281c39..e69f13bb29 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/css/colors.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/css/colors.tt2 @@ -48,7 +48,7 @@ accent_mediumdark = "#888", # gun metal grey (medium dark) accent_dark = "#666", # gun metal grey (dark) accent_darker = "#333", # gun metal grey (darker) - border_standard = "#e9ebf3", # light grey-blue + border_standard = "#888", # gun metal grey (medium dark) border_dark = "black", # black border_alert = "red", # red button_text = "#fbf9f9", # off-white -- 2.11.0