support feature linke `StyleSheetManager` in styled-components
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
先阅读 src/main.tsx 中链接的示例以及相关 issue #496,以了解针对 Shadow DOM 所要求的 StyleSheetManager 行为。该 issue 没有指出任何 Linaria 实现文件或测试,因此首先定位现有的全局样式注入入口,并定义所需的 API 和测试覆盖范围,以证明样式会应用于 shadow root 内部。
由索引模型根据 Issue 内容生成。
描述
repo https://github.com/yzqbugs/linaria-feat
Describe the feature
so we could provide a StyleSheetManager to set where to put our style in, like StyleSheetManager
Motivation
all styles are generated in global scope. It's not usable for shadowDom,if we could provide a styleSheetManager to tell linaria to inject css to shadowdom element,all styles will take effect
below is my code, showing use styleSheetManager in shadowDom
we could see styled-components generate style beside dom, so styles could take effect
Possible implementations
Related Issues
#496
- 主要语言
- TypeScript
- 星标
- 12.4k
- 派生
- 413
- 平均合并
- 1 天 49 分钟
- 30 天内合并 PR
- 14
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
callstack/linaria 的其他 Issue
-
enhancement: proposal 💬 needs: triage 🏷
难度 4/5 3-5 天 新手友好度 45/100
callstack/linaria#1460 · 4 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
feature: proposal 💬 needs: triage 🏷
难度 5/5 一周以上 新手友好度 35/100
callstack/linaria#1427 · 3 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
cat: modules aliasing 🔗 enhancement: proposal 💬 needs: triage 🏷
难度 3/5 1-2 天 新手友好度 35/100
callstack/linaria#1423 · 6 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
enhancement: proposal 💬 needs: triage 🏷
难度 3/5 1-2 天 新手友好度 35/100
callstack/linaria#1417 · 3 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
bug report 🦗 bundler: webpack 📦 needs: complete repro 🖥️
难度 3/5 1-2 天 新手友好度 35/100
维护者通常 1 天内回复
查看 callstack/linaria 的全部 Issue
相似的 Issue
-
ci-cd desktop size:low telemetry-improvement telemetry-round-1
难度 2/5 1-3 小时 新手友好度 66/100
vfarcic/dot-agent-deck#2079 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 83/100
维护者通常 1 天内回复
-
status:in-linear
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
🔊 a11y
难度 2/5 1-3 小时 新手友好度 82/100
betagouv/mon-entreprise#4726 ·
维护者通常 9 天内回复