From bd35a360ca86fb9927a4435c23cfc0f5d8e90ee0 Mon Sep 17 00:00:00 2001 From: Meirza Date: Thu, 16 Feb 2023 09:46:59 +0700 Subject: [PATCH] MDL-76825 tiny: restyling link on focus for sufficient colour contrast. Text elements must have sufficient colour contrast against the background, restyling the link element when it is focused is to ensure colour contrast of at least 4.5:1 --- lib/editor/tiny/editor_styles.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/editor/tiny/editor_styles.css b/lib/editor/tiny/editor_styles.css index 14325e61ea7..84bc14158b7 100644 --- a/lib/editor/tiny/editor_styles.css +++ b/lib/editor/tiny/editor_styles.css @@ -2,3 +2,12 @@ body.mce-content-body { margin: revert; text-align: initial; } + +/** Web Accessibility - color contrast. */ +body.mce-content-body a[data-mce-selected="inline-boundary"] { + background-color: unset; +} +body.mce-content-body a { + color: #0f6cbf; +} +/** */ \ No newline at end of file