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

Classes on islands don't work well #6792

Closed
1 task
louiss0 opened this issue Apr 8, 2023 · 1 comment
Closed
1 task

Classes on islands don't work well #6792

louiss0 opened this issue Apr 8, 2023 · 1 comment

Comments

@louiss0
Copy link
Contributor

louiss0 commented Apr 8, 2023

What version of astro are you using?

2.2.1

Are you using an SSR adapter? If so, which one?

NOne

What package manager are you using?

npm

What operating system are you using?

Windows

What browser are you using?

Chrome

Describe the Bug

Developers can't use classes in as expected in islands. Since an island is rendered in as a child classes like odd:text-gray-500 or even:text-gray-500 don't work well. This can be solved using a directive.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-njm8rn?file=src/pages/index.astro

Participation

  • I am willing to submit a pull request for this issue.
@bluwy
Copy link
Member

bluwy commented Apr 9, 2023

This is how Astro islands work fundamentally. If you think we can support a sort of host: directive to add props to the astro-island, the feature suggestion can be submitted to https://github.com/withastro/roadmap instead. Thanks!

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2023
mkrogemann added a commit to mkrogemann/astro that referenced this issue Feb 7, 2024
This fixes a small typo in the output section of the types documentation. 
Replaces PR withastro#6792 in docs repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants