diff options
author | 2023-04-10 18:29:17 +0330 | |
---|---|---|
committer | 2023-04-10 16:59:17 +0200 | |
commit | c12ca5ece34beef0fb53f911515a7c752cc2f3ad (patch) | |
tree | 744f11a6e3f11cf5bb939cbae24238fec8d731cd | |
parent | a91e0156ab0a5ce01eaf59e6947bb70c34265dc2 (diff) | |
download | astro-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.md | 5 | ||||
-rw-r--r-- | packages/astro/src/core/errors/overlay.ts | 1 |
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'); |