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

Scoped CSS is not applied on build-time generated HTML #144

Open
saurabhdaware opened this issue Oct 20, 2022 · 0 comments
Open

Scoped CSS is not applied on build-time generated HTML #144

saurabhdaware opened this issue Oct 20, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@saurabhdaware
Copy link
Member

Describe the bug

Scoped CSS doesn't work with generated HTML (See the stackblitz example below)

To Reproduce

https://stackblitz.com/edit/abell-rqqnss?file=index.abell,_navbar.abell

Expected behavior

The scoped CSS should be applied on all HTML written inside that component irrespective of how it is generated.

Specs:

  • Abell Version: 1.0.0-alpha.72
  • Node Version: any
  • Operating System: any

Additional context

Currently we're looking for HTML tags in the code and injecting the hash which is used for scoping.

Because we're looking for HTML tags before the evaluation, it is only getting applied where we have well defined HTML tags. But for HTML that is generated on build time, that injection of hash doesn't happen.

@saurabhdaware saurabhdaware added the bug Something isn't working label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant