We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
5.1.1.
No response
<html lang="en" dir="rtl" class="h-full w-full"> <head> <Head /> <title></title> </head> <body class="m-0 h-full w-full"> <main class="flex min-h-screen flex-col"> <Header /> <slot /> <Footer /> </main> </body> </html>
I am losing the dir=ltr, in the output, using npm run dev
Browser output is:
<!DOCTYPE html> <!-- Character encoding and viewport settings --> <html><head>
This is not what the docs say: https://docs.astro.build/en/basics/layouts/
https://docs.astro.build/en/basics/layouts/
Should obey behaviour stated in docs, and not lose html attributes that are set, if working in a layout
https://seeexampleabove
The text was updated successfully, but these errors were encountered:
Hello @dreamstar-enterprises. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs repro will be closed if they have no activity within 3 days.
needs repro
Sorry, something went wrong.
Here is min repo code:
BaseLayout.astro
<!doctype html> <html lang="en" class="h-full w-full" transition:name="root" transition:animate="none"> <head> <Head /> <title></title> </head> <body dir="ltr" class="m-0 h-full w-full"> <main class="flex min-h-screen flex-col"> <Header/> <slot /> <Footer/> </main> </body> </html>
index.astro
<BaseLayout> <HomeSection/> </BaseLayout>
Let me know if you need naything else.
I had to keep dir="ltr" in the body as the html tag was not being preserved
I can't reproduce the problem. I created a layout like this and it was preserved in the output. Please provide a reproduction on Stackblitz.
<!doctype html> <html lang="en" dir="rtl" class="h-full w-full"> <head> <title></title> </head> <body class="m-0 h-full w-full"> <main class="flex min-h-screen flex-col"> <slot /> </main> </body> </html>
No branches or pull requests
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I am losing the dir=ltr, in the output, using npm run dev
Browser output is:
This is not what the docs say:
https://docs.astro.build/en/basics/layouts/
What's the expected result?
Should obey behaviour stated in docs, and not lose html attributes that are set, if working in a layout
Link to Minimal Reproducible Example
https://seeexampleabove
Participation
The text was updated successfully, but these errors were encountered: