MDL-75047 icons: Define the orientation of the question mark in right-to-left languages.

This commit is contained in:
Miri Lipson 2023-07-25 10:54:28 +03:00
parent b4cd63746a
commit 0a6693ec4f
2 changed files with 4 additions and 2 deletions

View File

@ -64,6 +64,7 @@ $string['strftimetime12'] = '%I:%M %p';
$string['strftimetime24'] = '%H:%M';
$string['thisdirection'] = 'ltr';
$string['thisdirectionvertical'] = 'btt';
$string['thisicondirection'] = 'standard';
$string['thislanguage'] = 'English';
$string['thislanguageint'] = 'English';
$string['thousandssep'] = ',';

View File

@ -502,8 +502,9 @@ class icon_system_fontawesome extends icon_system_font {
$data['aria-hidden'] = $icon->attributes['aria-hidden'];
}
// Flipping help icon direction in right-to-left languages.
if (right_to_left() && $data['key'] == "fa-question-circle text-info") {
// Define the orientation of the question mark in right-to-left languages.
$mirror = get_string('thisicondirection', 'langconfig');
if ($mirror == 'mirror' && (strpos($data['key'], 'fa-question') !== false)) {
$data['extraclasses'] = "fa-flip-horizontal";
}