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

extraStyle with layer result in duplicated "@layer antd" for table style #206

Closed
kennedy0527 opened this issue Dec 2, 2024 · 2 comments
Closed

Comments

@kennedy0527
Copy link

先附上 codesandbox

在nextjs 專案內 使用@ant-design/nextjs-registry
sample code如下

<AntdRegistry layer>
    <Provider>{children}</Provider>
</AntdRegistry>

Provider 是另外封裝的 Antd ConfigProvider

瀏覽頁面 AntdRegistry 成功建立了一個Style tag with id antd-cssinjs
但將其內容 複製出來 format後 檢查 發現table 的樣式 會多一個 @layer antd
這導致Table 沒辦法吃到 custom theme

刪除其中一個 @layer antd 就正常了
Screenshot 2024-12-02 at 7 23 57 PM

不確定是否是cssinjs 的問題,暫時先發在這裡

@Wxh16144
Copy link
Member

Wxh16144 commented Dec 5, 2024

fixed by #207

@kennedy0527
Copy link
Author

confirmed
thank you very much @Wxh16144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants