fix(error-overlay): force error overlay direction to be LTR (#6782)

This commit is contained in:
amirhhashemi 2023-04-10 18:29:17 +03:30 committed by GitHub
parent a91e0156ab
commit c12ca5ece3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Force error overlay direction to be LTR

View file

@ -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');