Skip to content

Commit fa33ee6

Browse files
hsbtclaude
andcommitted
Fix reversed RTL text in the code editors
Bootstrap 5.1's reboot sets `unicode-bidi: bidi-override` on `pre`, and CodeMirror draws every line as a `pre`, so RTL text in the editor and output was shown in logical order and the cursor and selection no longer matched it. Bootstrap 5.2 dropped that rule. #223 twbs/bootstrap#35230 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a2379ca commit fa33ee6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎source/stylesheets/application.css.scss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ pre {
252252
background: white;
253253
padding: .25em;
254254
border-radius: .5rem;
255+
256+
// Undo Bootstrap's bidi-override on pre, which lays out RTL text in logical order
257+
pre {
258+
unicode-bidi: normal;
259+
}
255260
}
256261
}
257262

0 commit comments

Comments
 (0)