summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar amirhhashemi <87268103+amirhhashemi@users.noreply.github.com> 2023-04-10 18:29:17 +0330
committerGravatar GitHub <noreply@github.com> 2023-04-10 16:59:17 +0200
commitc12ca5ece34beef0fb53f911515a7c752cc2f3ad (patch)
tree744f11a6e3f11cf5bb939cbae24238fec8d731cd
parenta91e0156ab0a5ce01eaf59e6947bb70c34265dc2 (diff)
downloadastro-c12ca5ece34beef0fb53f911515a7c752cc2f3ad.tar.gz
astro-c12ca5ece34beef0fb53f911515a7c752cc2f3ad.tar.zst
astro-c12ca5ece34beef0fb53f911515a7c752cc2f3ad.zip
fix(error-overlay): force error overlay direction to be LTR (#6782)
-rw-r--r--.changeset/beige-humans-study.md5
-rw-r--r--packages/astro/src/core/errors/overlay.ts1
2 files changed, 6 insertions, 0 deletions
diff --git a/.changeset/beige-humans-study.md b/.changeset/beige-humans-study.md
new file mode 100644
index 000000000..607be9712
--- /dev/null
+++ b/.changeset/beige-humans-study.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Force error overlay direction to be LTR
diff --git a/packages/astro/src/core/errors/overlay.ts b/packages/astro/src/core/errors/overlay.ts
index b7c9c8b94..8f7e464f8 100644
--- a/packages/astro/src/core/errors/overlay.ts
+++ b/packages/astro/src/core/errors/overlay.ts
@@ -584,6 +584,7 @@ class ErrorOverlay extends HTMLElement {
super();
this.root = this.attachShadow({ mode: 'open' });
this.root.innerHTML = overlayTemplate;
+ this.dir = 'ltr';
// theme toggle logic
const themeToggle = this.root.querySelector<HTMLInputElement>('.theme-toggle-checkbox');