abelljs / abelljs/abell

Scoped CSS is not applied on build-time generated HTML

未关闭
#144 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
TypeScript
星标
443
派生
36
PR 合并指标
30 天内没有已合并 PR

描述

**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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。