Skip to content

Commit

Permalink
docs: Update faq (ant-design#46709)
Browse files Browse the repository at this point in the history
* docs: Update faq

Signed-off-by: afc163 <[email protected]>

* Update faq.en-US.md

Signed-off-by: afc163 <[email protected]>

---------

Signed-off-by: afc163 <[email protected]>
  • Loading branch information
afc163 authored Dec 30, 2023
1 parent 8705640 commit f4822ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions docs/react/faq.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@ For historical reasons, the display names of the pop components are not uniform,

Please ref dynamic theme document [Legacy Browser Compatible](/docs/react/compatible-style) part.

## CSS-in-JS css priority conflict with tailwindcss?

Same as above. You can adjust antd css priority to override. Related issue: [#38794](https://github.com/ant-design/ant-design/issues/38794)

## How to let CSS-in-JS work with shadow DOM?

Please ref document [Shadow Dom Usage](/docs/react/compatible-style#shadow-dom-usage).

## How to disable motion?

Config with SeedToken:
Expand All @@ -199,14 +207,6 @@ import { ConfigProvider } from 'antd';
</ConfigProvider>;
```

## CSS-in-JS css priority conflict with tailwindcss?

Same as above. You can adjust antd css priority to override. Related issue: [#38794](https://github.com/ant-design/ant-design/issues/38794)

## How to let CSS-in-JS work with shadow DOM?

Please ref document [Shadow Dom Usage](/docs/react/compatible-style#shadow-dom-usage).

## How to support SSR?

Please ref dynamic theme document [SSR](/docs/react/server-side-rendering) part.
Expand Down
16 changes: 8 additions & 8 deletions docs/react/faq.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,14 @@ message/notification/Modal.confirm 等静态方法不同于 `<Button />` 的渲

请参考动态主题文档 [兼容旧版浏览器](/docs/react/compatible-style-cn) 部分内容。

## CSS-in-JS 与 tailwindcss 优先级冲突?

同上,你可以调整 antd 样式优先级以覆盖。相关 issue: [#38794](https://github.com/ant-design/ant-design/issues/38794)

## CSS-in-JS 如何与 Shadow DOM 一同使用?

请参考文档 [Shadow Dom 场景](/docs/react/compatible-style-cn#shadow-dom-场景) 内容。

## 如何关闭组件动画

通过 SeedToken 可以很方便的实现:
Expand All @@ -227,14 +235,6 @@ import { ConfigProvider } from 'antd';
</ConfigProvider>;
```

## CSS-in-JS 与 tailwindcss 优先级冲突?

同上,你可以调整 antd 样式优先级以覆盖。相关 issue: [#38794](https://github.com/ant-design/ant-design/issues/38794)

## CSS-in-JS 如何与 Shadow DOM 一同使用?

请参考文档 [Shadow Dom 场景](/docs/react/compatible-style-cn#shadow-dom-场景) 内容。

## 如何支持 SSR?

请参考动态主题文档 [服务端渲染](/docs/react/server-side-rendering-cn) 部分内容。
Expand Down

0 comments on commit f4822ac

Please sign in to comment.