Add support for CSS modules behind CSS layers to improve interop with tailwind
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- css, react, tailwindcss, typescript
调研方向
Read the CSS layers ADR at contributor-docs/adrs/adr-021-css-layers.md to understand the design. Look at how CSS modules are currently configured and built in the project, likely in build tooling like webpack or vite config. The change involves modifying the CSS build process to output styles within CSS layers. Test by integrating with @primer/tailwind-config to verify utility classes now have correct specificity.
由索引模型根据 Issue 内容生成。
描述
Currently, our styles don't sit within any CSS layers outside of dotcom. When used with tools like @primer/tailwind-config, this means that it is non-trivial to use a tailwind class with a component since the tailwind utility class will always lose in specificity (because it is wrapped in a layer)
This issue tracks adding support for this directly into primer/react and removing this from dotcom by following our CSS layers ADR.
- 主要语言
- TypeScript
- 星标
- 3.9k
- 派生
- 705
- 平均合并
- 3 天 18 小时
- 30 天内合并 PR
- 47
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
primer/react 的其他 Issue
-
MCP: get_component_examples and get_component_accessibility_guidelines still use the component id instead of the slug (home page returned for multi-word components)可能已有人在做 @Pranay623 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
primer/react#8561 · 3 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
PageHeader.Title does not seem to accept id prop可能已有人在做 @TylerJDev 于 7 天前认领。 未关闭component: PageHeader react staff
难度 2/5 1-3 小时 新手友好度 72/100
primer/react#8474 · 1 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 2 天内回复
-
The padding prop seems to have no effect with PageLayout.Sidebar可能已有人在做 @minwookshin 于 19 天前认领。 未关闭component: PageLayout react staff
难度 2/5 1-3 小时 新手友好度 68/100
primer/react#8470 · 1 条评论 · 1 个 reaction ·
维护者通常 2 天内回复
-
bug component: Spinner react
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 2 天内回复
-
waiting for author response
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 2 天内回复
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
equinor/prisma-decision-web#919 ·
维护者通常 1 天内回复
-
[DC] OneLogin sync imports a partial user list when an API request fails可能已有人在做 @RaphaelFakhri 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
bitwarden/directory-connector#1276 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
home-assistant/installer#324 ·
维护者通常 1 天内回复
-
Mondriaan
难度 2/5 1-3 小时 新手友好度 65/100
knaw-huc/textannoviz#733 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复