Skip to content

Commit

Permalink
doc: update token note (ant-design#44447)
Browse files Browse the repository at this point in the history
  • Loading branch information
poyiding authored Aug 28, 2023
1 parent c07d61a commit ef61160
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/react/migrate-less-variables.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export default App;
| `@checkbox-size` | `controlInteractiveSize` | GlobalToken |
| `@checkbox-color` | `colorPrimary` | - |
| `@checkbox-check-color` | `colorWhite` | - |
| `@checkbox-check-bg` | - | `colorPrimary` |
| `@checkbox-check-bg` | `colorPrimary` | GlobalToken |
| `@checkbox-border-width` | `lineWidth` | - |
| `@checkbox-border-radius` | `borderRadiusSM` | - |
| `@checkbox-group-item-margin-right` | - | Deprecated for style change |
Expand Down Expand Up @@ -335,7 +335,7 @@ export default App;

| Less variables | Component Token | Note |
| ------------------------------------ | --------------------- | ----------- |
| `@dropdown-selected-color` | `colorPrimary` | - |
| `@dropdown-selected-color` | `colorPrimary` | GlobalToken |
| `@dropdown-menu-submenu-disabled-bg` | `colorBgElevated` | GlobalToken |
| `@dropdown-selected-bg` | `controlItemBgActive` | GlobalToken |

Expand Down Expand Up @@ -565,7 +565,7 @@ export default App;
<!-- prettier-ignore -->
| Less variables | Component Token | Note |
| --- | --- | --- |
| `@popover-bg` | `colorBgContainer` | - |
| `@popover-bg` | `colorBgElevated` | GlobalToken |
| `@popover-color` | `colorText` | GlobalToken |
| `@popover-min-width` | `minWidth` | - |
| `@popover-min-height` | - | Deprecated for style change |
Expand Down
10 changes: 5 additions & 5 deletions docs/react/migrate-less-variables.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ export default App;
| Less 变量 | Component Token | 备注 |
| --- | --- | --- |
| `@checkbox-size` | `controlInteractiveSize` | 全局 Token |
| `@checkbox-color` | `colorPrimary` | - |
| `@checkbox-color` | `colorPrimary` | 全局 Token |
| `@checkbox-check-color` | `colorWhite` | - |
| `@checkbox-check-bg` | - | `colorPrimary` |
| `@checkbox-check-bg` | `colorPrimary` | 全局 Token |
| `@checkbox-border-width` | `lineWidth` | - |
| `@checkbox-border-radius` | `borderRadiusSM` | - |
| `@checkbox-group-item-margin-right` | - | 由于样式变化已废弃 |
Expand Down Expand Up @@ -334,7 +334,7 @@ export default App;

| Less 变量 | Component Token | 备注 |
| ------------------------------------ | --------------------- | ---------- |
| `@dropdown-selected-color` | `colorPrimary` | - |
| `@dropdown-selected-color` | `colorPrimary` | 全局 Token |
| `@dropdown-menu-submenu-disabled-bg` | `colorBgElevated` | 全局 Token |
| `@dropdown-selected-bg` | `controlItemBgActive` | 全局 Token |

Expand Down Expand Up @@ -460,7 +460,7 @@ Mentions 提及
<!-- prettier-ignore -->
| less 变量 | Component Token | 备注 |
| --- | --- | --- |
| `@mentions-dropdown-bg` | `colorBgElevated` | - |
| `@mentions-dropdown-bg` | `colorBgElevated` | 全局 Token |
| `@mentions-dropdown-menu-item-hover-bg` | - | 已废弃 |

### Menu 导航菜单
Expand Down Expand Up @@ -566,7 +566,7 @@ Mentions 提及
<!-- prettier-ignore -->
| Less variables | Component Token | Note |
| --- | --- | --- |
| `@popover-bg` | `colorBgElevated` | - |
| `@popover-bg` | `colorBgElevated` | 全局 Token |
| `@popover-color` | `colorText` | 全局 Token |
| `@popover-min-width` | `minWidth` | - |
| `@popover-min-height` | - | 已废弃 |
Expand Down

0 comments on commit ef61160

Please sign in to comment.