Browse Source

docs: update spin Faq

林艳 2 tháng trước cách đây
mục cha
commit
98040fc80b
2 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 2
      content/feedback/spin/index-en-US.md
  2. 0 2
      content/feedback/spin/index.md

+ 2 - 2
content/feedback/spin/index-en-US.md

@@ -172,10 +172,10 @@ import { Spin, Button } from '@douyinfe/semi-ui';
 
 -   **How to modify the color of the spin icon? **
 
-    You can overwrite the original color by adding a color property to the .semi-spin-wrapper class.
+    You can override the original color by adding the color property to the .semi-spin-wrapper class (it is recommended to override with a higher weight).
 
     ```
-    .semi-spin-wrapper {
+    .custom .semi-spin-wrapper {
       color: red;
     }
     ```

+ 0 - 2
content/feedback/spin/index.md

@@ -150,8 +150,6 @@ import { Spin, Button } from '@douyinfe/semi-ui';
     可以通过给 .semi-spin-wrapper 类添加 color 属性覆盖原有的颜色(推荐以更高权重覆盖)
 
     ```
-    <Spin classname='custom' />
-    
     .custom .semi-spin-wrapper {
       color: red;
     }