Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 10, 2023

Conversation

amirhhashemi
Copy link
Contributor

@amirhhashemi amirhhashemi commented Apr 7, 2023

Changes

The error overlay is designed for LTR (Left to Right) documents so when I change my document's direction to RTL (<html dir="rtl") it breaks. I forced the direction to be LTR because it doesn't make sense to be RTL. The error message and the codes would be hard to read in RTL.

Before:

Screenshot from 2023-04-07 18-21-51

After:

Screenshot from 2023-04-07 18-22-38

Testing

Not needed

Docs

Not needed

@changeset-bot
Copy link

changeset-bot bot commented Apr 7, 2023

🦋 Changeset detected

Latest commit: 65df4fe

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Apr 7, 2023
@amirhhashemi amirhhashemi changed the title fix(error-overlay): force error overlay direction to "ltr" fix(error-overlay): force error overlay direction to be LTR Apr 7, 2023
Copy link
Member

@Princesseuh Princesseuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Sorry for not considering this when designed the overlay, we really should have.

@Princesseuh Princesseuh merged commit c12ca5e into withastro:main Apr 10, 2023
@astrobot-houston astrobot-houston mentioned this pull request Apr 10, 2023
@amirhhashemi amirhhashemi deleted the ltr-error-overlay branch April 10, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants