Browse Source

feat: migrate less to token for Tooltip (#42046)

* feat: less to component token for Tooltip

* refactor: rewrite several attributes

* docs: update migrate-less-variables

* feat: add demo

* docs: fix version error

* docs: Update docs/react/migrate-less-variables.zh-CN.md

Co-authored-by: MadCcc <1075746765@qq.com>

* docs: Update docs/react/migrate-less-variables.zh-CN.md

Co-authored-by: MadCcc <1075746765@qq.com>

* docs: update docs/react/migrate-less-variables.zh-CN.md

Co-authored-by: MadCcc <1075746765@qq.com>

* docs: update docs/react/migrate-less-variables.zh-CN.md

Co-authored-by: MadCcc <1075746765@qq.com>

* docs: Update docs/react/migrate-less-variables.zh-CN.md

Co-authored-by: MadCcc <1075746765@qq.com>

* docs: update docs/react/migrate-less-variables.zh-CN.md

Co-authored-by: MadCcc <1075746765@qq.com>

* docs: Update docs/react/migrate-less-variables.zh-CN.md

Co-authored-by: MadCcc <1075746765@qq.com>

* fix: remove demo

* fix: recover previous version

---------

Co-authored-by: MadCcc <1075746765@qq.com>
pull/42819/head
GUAN MING 2 years ago
committed by GitHub
parent
commit
5c09e7a387
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      docs/react/migrate-less-variables.en-US.md
  2. 13
      docs/react/migrate-less-variables.zh-CN.md

13
docs/react/migrate-less-variables.en-US.md

@ -429,7 +429,18 @@ This document contains the correspondence between all the less variables related
<!-- ### TimePicker -->
<!-- ### Tooltip -->
### Tooltip
<!-- prettier-ignore -->
| Less variables | Component Token | Note |
| --- | --- | --- |
| `@tooltip-max-width` | - | Can be directly modified by `className` or `style` |
| `@tooltip-color` | `colorTextLightSolid` | Global Token |
| `@tooltip-bg` | `colorBgSpotlight` | Global Token |
| `@tooltip-arrow-width` | `sizePopupArrow` | Global Token |
| `@tooltip-distance` | `marginXXS` | Global Token |
| `@tooltip-arrow-color` | - | same as `@tooltip-bg`,Deprecated |
| `@tooltip-border-radius` | `borderRadius` | Global Token |
### Transfer

13
docs/react/migrate-less-variables.zh-CN.md

@ -426,7 +426,18 @@ Mentions 提及
<!-- ### TimePicker 时间选择 -->
<!-- ### Tooltip 文字提示 -->
### Tooltip 文字提示
<!-- prettier-ignore -->
| less 变量 | Component Token | 备注 |
| --- | --- | --- |
| `@tooltip-max-width` | - | 可由 `className``style` 直接修改 |
| `@tooltip-color` | `colorTextLightSolid` | 全局 Token |
| `@tooltip-bg` | `colorBgSpotlight` | 全局 token |
| `@tooltip-arrow-width` | `sizePopupArrow` | 全局 Token |
| `@tooltip-distance` | `marginXXS` | 全局 Token |
| `@tooltip-arrow-color` | - | 同 `@tooltip-bg`,已废弃 |
| `@tooltip-border-radius` | `borderRadius` | 全局 Token |
Transfer 穿梭框

Loading…
Cancel
Save