Skip to content

Commit

Permalink
fix(error-overlay): force error overlay direction to be LTR (#6782)
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhhashemi authored Apr 10, 2023
1 parent a91e015 commit c12ca5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-humans-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Force error overlay direction to be LTR
1 change: 1 addition & 0 deletions packages/astro/src/core/errors/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit c12ca5e

Please sign in to comment.