mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
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>
This commit is contained in:
parent
6227806842
commit
5c09e7a387
@ -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
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user