From 8c9368c9f21d5aac6f942b38db96bd28c4f69a9c Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Sat, 22 Nov 2025 23:20:35 +0800 Subject: [PATCH] docs: update layer docs (#55818) * docs: update docs * update --- SECURITY.md | 1 + docs/react/compatible-style.en-US.md | 4 ++-- docs/react/compatible-style.zh-CN.md | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 1b4ac9f640..ce372ad7b9 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,6 +6,7 @@ Use this section to tell people about which versions of your project are current | Version | Supported | | ------- | ------------------ | +| 6.x | :white_check_mark: | | 5.x | :white_check_mark: | | < 5.0 | :x: | diff --git a/docs/react/compatible-style.en-US.md b/docs/react/compatible-style.en-US.md index 1c398f2293..ed5356060e 100644 --- a/docs/react/compatible-style.en-US.md +++ b/docs/react/compatible-style.en-US.md @@ -296,9 +296,9 @@ In global.css, adjust `@layer` to control the order of style override. Place `an @import 'tailwindcss'; ``` -### reset.css +### reset.css and antd.css -If you are using Ant Design’s `reset.css`, you need to assign it to a specific `@layer` to prevent it from overriding the lowered-specificity antd styles. Likewise, in the `zeroRuntime` scenario, if you import `antd.css` separately, you must also place it inside `layer(antd)` to keep the layer hierarchy consistent: +If you are using Ant Design’s `reset.css`, you need to assign it to a specific `@layer` to prevent it from overriding the lowered-specificity antd styles. Similarly, in the `zeroRuntime` scenario, if you import `antd.css` separately, you must also place it inside `layer(antd)` to keep the layer hierarchy consistent: ```css /* Both reset.css and antd.css must specify a layer */ diff --git a/docs/react/compatible-style.zh-CN.md b/docs/react/compatible-style.zh-CN.md index 7a5dc9e815..1415c67c7e 100644 --- a/docs/react/compatible-style.zh-CN.md +++ b/docs/react/compatible-style.zh-CN.md @@ -296,9 +296,9 @@ export default () => ( @import 'tailwindcss'; ``` -### reset.css +### reset.css 和 antd.css -如果你使用了 antd 的 `reset.css` 样式,你需要为其指定 `@layer` 以防止将 antd 降权的样式覆盖;同理,在 `zeroRuntime` 场景下如果你单独引入 `antd.css`,也必须为其添加 `layer(antd)` 以保持层级一致: +如果你使用了 antd 的 `reset.css` 样式,你需要为其指定 `@layer` 以防止将 antd 降权的样式覆盖。同理,在 `zeroRuntime` 场景下如果你单独引入 `antd.css`,也必须为其添加 `layer(antd)` 以保持层级一致: ```css /* reset.css 和 antd.css 都需要指定 layer */