Skip to content

Commit c12ca5e

Browse files
authored
fix(error-overlay): force error overlay direction to be LTR (#6782)
1 parent a91e015 commit c12ca5e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/beige-humans-study.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Force error overlay direction to be LTR

packages/astro/src/core/errors/overlay.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ class ErrorOverlay extends HTMLElement {
584584
super();
585585
this.root = this.attachShadow({ mode: 'open' });
586586
this.root.innerHTML = overlayTemplate;
587+
this.dir = 'ltr';
587588

588589
// theme toggle logic
589590
const themeToggle = this.root.querySelector<HTMLInputElement>('.theme-toggle-checkbox');

0 commit comments

Comments
 (0)