Skip to content

Commit a9e1da0

Browse files
authored
Merge pull request #1487 from taniwallach/pg221-rtl-patches
2 small changes to improve behavior in RTL problems/courses
2 parents d30e878 + 8eabe9e commit a9e1da0

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

htdocs/js/Problem/problem.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@
412412
}
413413

414414
&.feedback-message {
415+
direction: ltr;
415416
background-color: #ede275;
416417
&:not(:last-child) {
417418
border-bottom: 1px solid black;

macros/core/PGbasicmacros.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ sub NAMED_ANS_RULE {
301301
HTML => tag(
302302
'div',
303303
class => 'text-nowrap d-inline',
304+
dir => 'ltr',
304305
tag(
305306
'input',
306307
type => 'text',

t/pg_problems/problem_file.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ is(
2323
qq{<div class="PGML">\n}
2424
. qq{Enter a value for <script type="math/tex">\\pi</script>.}
2525
. qq{<div style="margin-top:1em"></div>}
26-
. qq{<div class="text-nowrap d-inline">}
26+
. qq{<div class="text-nowrap d-inline" dir="ltr">}
2727
. qq{<input aria-label="answer 1 " autocapitalize="off" autocomplete="off" class="codeshard" }
2828
. qq{dir="auto" id="AnSwEr0001" name="AnSwEr0001" size="5" spellcheck="false" type="text" value="3.14159">}
2929
. qq{<input id="MaThQuIlL_AnSwEr0001" name="MaThQuIlL_AnSwEr0001" type="hidden" value="">}

0 commit comments

Comments
 (0)