ant-design / ant-design/cssinjs
使用cdn方式加载antd5和@ant-design/cssinjs,动态添加的样式异常
Open
- Dominant language
- TypeScript
- Stars
- 287
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
以下是我动过dom查询到style标签后打印的内容,发现这里多了一个 & 符号
带来的问题是 一部分样式失效,像这里丢失了.ant-btn-variant-solid的背景色
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported CDN setup with antd 5 and @ant-design/cssinjs, then inspect the dynamically generated style tag in the DOM. Compare the generated CSS with the expected selectors, especially the .ant-btn-variant-solid rule. Done means the injected CSS contains no stray '&' and the affected button styles render correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100