From 09aecd9942048473fa5a70573b556b750bdc8cdd Mon Sep 17 00:00:00 2001 From: Stephanie Leary Date: Fri, 9 Dec 2022 11:22:13 -0600 Subject: [PATCH] Access Key Info modal color contrast fixes The modal header and close button don't pass WCAG color contrast checks. In addition to fixing those issues, I've given the rows alternating backgrounds and bold column headers. Signed-off-by: Stephanie Leary --- .../share/accesskey/accesskey-info.component.css | 37 ++++++++++++++++++++++ .../share/accesskey/accesskey-info.component.html | 22 ++++++------- .../share/accesskey/accesskey-info.component.ts | 6 ++-- 3 files changed, 52 insertions(+), 13 deletions(-) create mode 100644 Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.css diff --git a/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.css b/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.css new file mode 100644 index 0000000000..e2ab932f23 --- /dev/null +++ b/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.css @@ -0,0 +1,37 @@ +.modal-title { + color: #fff; + font-weight: 600; +} + +.modal-header .close, +.modal-header .close:hover { + color: #fff; + opacity: 1; + text-shadow: none; +} + +.modal-header .close:not(:disabled):not(.disabled):focus, +.modal-header .close:not(:disabled):not(.disabled):hover { + opacity: 1; +} + +.modal-body .row { + margin: 0; +} + +.modal-body .row:nth-of-type(odd) { + background: #f4f4f4; +} + +.modal-body .row.shortcut-info { + background: #fff; + font-style: italic; +} + +.modal-body .row-header { + font-weight: bold; +} + +.shortcut-keycombo { + text-align: center; +} diff --git a/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.html b/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.html index 8396ea5873..af51572e15 100644 --- a/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.html +++ b/Open-ILS/src/eg2/src/app/share/accesskey/accesskey-info.component.html @@ -7,20 +7,20 @@