Ryan
ec3b479076
feat: Customize background colors of default & dashed buttons in disabled state ( #52839 )
...
* feat: Supports customizing the background color of default type buttons in disabled state
* test: add corresponding test case
* feat: Supports customizing the background color of dashed type buttons in disabled state
* test: add corresponding test case
* chore: add custom disabled backgroundColor demo
* chore: add snapshot
* chore: add whitespace
* chore: Modify the variable name of the button token
* test: update test
* chore: update snapshot
* chore: update snapshot
* Update components/button/style/token.ts
docs: update comments
Co-authored-by: thinkasany <480968828@qq.com>
Signed-off-by: Ryan <55972954+yellowryan@users.noreply.github.com>
---------
Signed-off-by: Ryan <55972954+yellowryan@users.noreply.github.com>
Co-authored-by: thinkasany <480968828@qq.com>
2025-03-13 15:28:42 +08:00
二货机器人
f45cd8bfc4
chore: merge master
2025-02-18 19:56:12 +08:00
二货爱吃白萝卜
63cbe9e1f0
fix: Button missing primary style ( #52812 )
...
* fix: Button style of preset
* chore: add info of fix
* docs: update demo
* chore: fix lint
* test: update snapshot
* fix: color of link
* test: update snapshot
* test: update snapshot
2025-02-17 16:04:02 +08:00
thinkasany
bd2e46996d
chore: sync feature into next
2025-02-10 21:17:12 +08:00
afc163
51a213873c
fix: Button shadow color should be transparent ( #52701 )
2025-02-10 11:21:10 +08:00
Jony J
c2e4f23f4c
feat(design): [v6] add colorBorderDisabled token ( #52421 )
...
* feat(design-token): add colorBorderDisabled token
* fix: add token in dark mode
* fix: compatible with legacy token
* docs: improve demo
* fix: compatible with legacy token
* docs: update demo
* test: update snapshot
* docs: adjust demo & logic
---------
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
2025-01-21 18:12:24 +08:00
afc163
bd0d445668
style: tweak icon-only button font-size to align icon and text ( #52353 )
...
* style: tweak icon-only button font-size to align icon and text
* fix
* fix
2025-01-12 14:40:42 +08:00
二货爱吃白萝卜
ba415fcabc
fix: Button color boxShadow missing ( #52304 )
...
Publish Any Commit / build (push) Waiting to run
🔀 Sync mirror to Gitee / mirror (push) Waiting to run
✅ test / lint (push) Waiting to run
✅ test / test-react-legacy (16, 1/2) (push) Waiting to run
✅ test / test-react-legacy (16, 2/2) (push) Waiting to run
✅ test / test-react-legacy (17, 1/2) (push) Waiting to run
✅ test / test-react-legacy (17, 2/2) (push) Waiting to run
✅ test / test-node (push) Waiting to run
✅ test / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test / test-coverage (push) Blocked by required conditions
✅ test / build (push) Waiting to run
✅ test / test lib/es module (es, 1/2) (push) Waiting to run
✅ test / test lib/es module (es, 2/2) (push) Waiting to run
✅ test / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run
* fix: Button color boxShadow missing
* chore: add comment
2025-01-08 20:28:19 +08:00
thinkasany
370ccc73da
fix: resolved merge conflicts
2024-12-27 10:28:57 +08:00
afc163
fd31d300ed
fix: Button icon align issue again ( #52132 )
...
Publish Any Commit / build (push) Waiting to run
🔀 Sync mirror to Gitee / mirror (push) Waiting to run
✅ test / lint (push) Waiting to run
✅ test / test-react-legacy (16, 1/2) (push) Waiting to run
✅ test / test-react-legacy (16, 2/2) (push) Waiting to run
✅ test / test-react-legacy (17, 1/2) (push) Waiting to run
✅ test / test-react-legacy (17, 2/2) (push) Waiting to run
✅ test / test-node (push) Waiting to run
✅ test / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test / test-coverage (push) Blocked by required conditions
✅ test / build (push) Waiting to run
✅ test / test lib/es module (es, 1/2) (push) Waiting to run
✅ test / test lib/es module (es, 2/2) (push) Waiting to run
✅ test / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run
* fix: Button icon align issue again
* fix align
* fix align
* fix
* fix
* buttonPaddingVertical => 0
* fix icon only vertical align
2024-12-26 17:00:23 +08:00
afc163
e034a33f22
chore: merge master to feature
2024-12-23 21:23:08 +08:00
afc163
6a0eda0f99
fix(Button): align buttons with and without icons consistently ( #52070 )
...
* fix(Button): align buttons with and without icons consistently
* test: update snapshot
* fix align
* fix align
* fix button align
* fix button align
* fix button align
* update snapshot
2024-12-23 17:09:07 +08:00
二货爱吃白萝卜
890a86bcc2
fix: Button with loading motion ( #52059 )
...
Publish Any Commit / build (push) Waiting to run
🔀 Sync mirror to Gitee / mirror (push) Waiting to run
✅ test / lint (push) Waiting to run
✅ test / test-react-legacy (16, 1/2) (push) Waiting to run
✅ test / test-react-legacy (16, 2/2) (push) Waiting to run
✅ test / test-react-legacy (17, 1/2) (push) Waiting to run
✅ test / test-react-legacy (17, 2/2) (push) Waiting to run
✅ test / test-node (push) Waiting to run
✅ test / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test / test-coverage (push) Blocked by required conditions
✅ test / build (push) Waiting to run
✅ test / test lib/es module (es, 1/2) (push) Waiting to run
✅ test / test lib/es module (es, 2/2) (push) Waiting to run
✅ test / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run
* fix: button loading icon motion
* test: update snapshot
* test: update snapshot
* test: update snapshot
2024-12-19 19:29:51 +08:00
github-actions[bot]
d20a07405f
chore: auto merge branches ( #52047 )
...
chore: merge master into feature
2024-12-19 08:12:06 +00:00
DDDDD12138
7db7d52563
fix(button): ensure solid default button text remains visible on hover in dark mode ( #52024 )
2024-12-17 10:05:20 +08:00
Oyster Lee
6b98f84c62
feat(Button): support color from Antd's colors ( #51550 )
...
* feat(button): add antd preset colors
* chore(button): add colors to docs
* test(button): add tests for colors
* refactor: remove LiteralUnion
* test: add const to colors
* refactor(button): import from preset colors
* chore(button): update docs
* test(button): test with preset colors
* test(button): import from relative path
* fix(button): color
* fix(button): add missing box shadow
* test(button): merge preset colors and variants test case
* refactor(button): use light color as box shadow
* refactor(button): set hover color to 5
* docs(button): update doc
* docs(button): update doc
---------
Co-authored-by: ice <49827327+coding-ice@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
2024-12-09 14:27:07 +08:00
afc163
0d5f4ff95c
chore: remove useless var ( #51689 )
2024-11-19 17:31:13 +08:00
afc163
e34a6a8c6f
fix: Button custom icon is not align center ( #51652 )
Publish Any Commit / build (push) Waiting to run
🔀 Sync mirror to Gitee / mirror (push) Waiting to run
✅ test / lint (push) Waiting to run
✅ test / test-react-legacy (16, 1/2) (push) Waiting to run
✅ test / test-react-legacy (16, 2/2) (push) Waiting to run
✅ test / test-react-legacy (17, 1/2) (push) Waiting to run
✅ test / test-react-legacy (17, 2/2) (push) Waiting to run
✅ test / test-node (push) Waiting to run
✅ test / test-react-latest (dom, 1/2) (push) Waiting to run
✅ test / test-react-latest (dom, 2/2) (push) Waiting to run
✅ test / test-react-latest-dist (dist, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist, 2/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 1/2) (push) Blocked by required conditions
✅ test / test-react-latest-dist (dist-min, 2/2) (push) Blocked by required conditions
✅ test / test-coverage (push) Blocked by required conditions
✅ test / build (push) Waiting to run
✅ test / test lib/es module (es, 1/2) (push) Waiting to run
✅ test / test lib/es module (es, 2/2) (push) Waiting to run
✅ test / test lib/es module (lib, 1/2) (push) Waiting to run
✅ test / test lib/es module (lib, 2/2) (push) Waiting to run
👁️ Visual Regression Persist Start / test image (push) Waiting to run
2024-11-18 12:03:52 +08:00
𝑾𝒖𝒙𝒉
7379233810
Revert "fix(icon-button): Button icon not vertically centered error" ( #51588 )
2024-11-12 13:49:12 +08:00
𝑾𝒖𝒙𝒉
c69e943eeb
fix(icon-button): Button icon not vertically centered error ( #51381 )
2024-10-26 23:54:03 +08:00
ice
696c9dde02
fix(button): type=link error token & add prefix cls (color/variant) & specificity too high ( #50962 )
2024-09-24 23:52:50 +08:00
章鱼怪
b5b0918970
feat: Text Button tokens ( #47870 )
2024-09-18 23:26:56 +08:00
ice
badfbe3cfe
feat(Button): support variant and color ( #50051 )
...
* feat(button): variant & color types
* feat: type -> color/variant
* feat: type -> color/variant
* feat: add variant filled
* test: snap
* refactor(button): rename type -> variant
* docs: add demo
* feat: add danger ghost style
* refactor: remove deprecated
* refactor: eslint
* docs: change color&variant
* test: updated snap
* docs: color-variant
* docs: add debug color&variant
* feat: global token
* refactor: remove comment
* docs: add color&variant docs
* docs: remove default
* docs: add space
* docs: code
* test: update snap
* test: fix snap
* test: btn querySelect
* feat: change filled hoverStyle
* test: fix
* feat: support grey wave
* refactor: enhance
* docs: color/variant -> v 5.21
* test: snap
* feat: add token
* test: to do
* test: fix test
* ci: rebuild
* style: remove
* style: space
* docs: add note & FQA
* feat: add componentsToken
* refactor: remove isNotGrey
* test: add case
* docs: tile button
* test: snap
* docs: site & snap
* Update components/button/index.en-US.md
Co-authored-by: lijianan <574980606@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* fix: token color & undef
* docs: site
* docs: responsive
* docs: enhance FAQ
* docs: gap middle
* test: snap
* Update components/theme/interface/maps/colors.ts
Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* Update components/theme/interface/maps/colors.ts
Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* Update components/theme/interface/maps/colors.ts
Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* Update components/button/style/token.ts
Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* Update components/button/style/token.ts
Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
* refactor: rename
* docs: prettier
* chore: eslint
* refactor: cls
* test: add solidTextColor case
* refactor: genVariantButtonStyle
* refactor: genVariantButtonStyle
* refactor: genVariantButtonStyle
* fix: rename
* docs: text
* fix: remove border
* feat: add token colorErrorBgFilledHover
* chore: add size-limit
* refactor: rename
---------
Signed-off-by: ice <49827327+coding-ice@users.noreply.github.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2024-09-03 17:39:02 +08:00
lijianan
1421eccb04
chore: update componentCls key again ( #50251 )
...
* chore: update componentCls key again
* Update components/skeleton/style/index.ts
Signed-off-by: lijianan <574980606@qq.com>
---------
Signed-off-by: lijianan <574980606@qq.com>
2024-08-05 22:30:55 +08:00
afc163
59ad48476b
refactor: add boime lint and fix lint errrors ( #49536 )
...
* chore: add boime lint
* fix lint
* use files ignore
* revert change
* ignore clarity.js
* fix some errors
* fix some errors
* fix some errors
* fix some errors
* add yml file
* Update clarity.js
Signed-off-by: afc163 <afc163@gmail.com>
* add npm run lint:biome
* add npm run lint:biome
* fix test case
* fix ts errors
* fix ts errors
* fix lint and add .lintstagedrc
* shorten prop name
* chore: update package.json
* update biome.json
* chore: remove stylelint
* chore: useOptionalChain
* fix lint
* biome format
* prettier all code
* prettier all code
* fix site test
---------
Signed-off-by: afc163 <afc163@gmail.com>
2024-06-22 21:59:12 +08:00
afc163
b49f70fb74
Merge pull request #48911 from ant-design/master
...
chore: merge master into feature
2024-05-14 11:33:39 +08:00
LonelySnowman
8b8021083e
fix: button component add colorErrorBgActive token ( #48876 )
2024-05-12 20:16:58 +08:00
afc163
a343fcd035
refactor: button icon only style ( #48840 )
2024-05-09 18:34:12 +08:00
afc163
6957a5f90d
style: fix Button align issue ( #47318 )
...
* style: fix Button align issue
* test: fix test case
* test: fix AutoComplete image diff
* test: fix Transfer image diff
* refactor: simpify icon position code
* chore: remove unused import
* chore: update snapshot
* chore: fix button style
* chore: fix button style
2024-05-09 17:41:26 +08:00
George H
14f8279aea
feat: Support iconPosition with button icon ( #47791 )
...
* feat: button support iconPosition
* fix: iconPosition compatible LoadingIcon
* docs(Button): update Button with iconPosition demo
* fix: delete debug type
* fix: iconPosition for InnerLoadingIcon with not existIcon
* chore: update button snapshots
* fix: fixed loading-icon-end style
* chore: refactor buttonContent with genButtonContent
* fix: iconPosition compatible with rtl
* docs(Button): update button with iconPosition demo
* chore: update test
* fix: iconPosition compatible with rtl
* docs(Buttob): add icon-position demo
* restore icon demo
* update snapshots
* docs: update icon button demo
* docs: update iconPosition button demo
* Update components/button/index.zh-CN.md
Co-authored-by: kiner-tang <1127031143@qq.com>
Signed-off-by: George H <default_hyn@163.com>
* Update components/button/index.zh-CN.md
Co-authored-by: kiner-tang <1127031143@qq.com>
Signed-off-by: George H <default_hyn@163.com>
* Update components/button/demo/icon-position.md
Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: George H <default_hyn@163.com>
* Update components/button/index.en-US.md
Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: George H <default_hyn@163.com>
* Update components/button/index.en-US.md
Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: George H <default_hyn@163.com>
---------
Signed-off-by: George H <default_hyn@163.com>
Co-authored-by: kiner-tang <1127031143@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-04-07 22:42:20 +08:00
momesana
18f9be6a6e
fix: vertically center icons in icon-only buttons ( #48178 )
...
Co-authored-by: Mehdi Salem <mehdi.salem@qt.io>
2024-03-30 22:14:34 +08:00
章鱼怪
3c477ee52d
feat: Button add tokens ( #47075 )
...
* feat: default button add tokens
* fix: var name
2024-01-26 14:00:21 +08:00
叶枫
ea02766934
Fix button size style ( #47074 )
...
* fix: Button size style
* fix: Button size style
* feat: default 补充默认样式
* feat: style
* feat: style
* feat: style
2024-01-23 10:20:57 +08:00
MadCcc
2fe9b46bc1
feat: Button support lineHeight token ( #46936 )
...
* feat: Button support lineHeight token
* refactor: rm format
* chore: code clean
* chore: fix test
2024-01-12 15:03:03 +08:00
MadCcc
c35e0982cb
fix: Button padding token should follow contentFontSize ( #46901 )
2024-01-11 11:18:21 +08:00
vagusx
71bd883126
Merge remote-tracking branch 'origin/master' into feature-merge-master-12-04
2023-12-04 10:32:45 +08:00
afc163
83f969b2be
style: Button support gradient background ( #46192 )
...
* style: Button support gradient background
* chore: fix test case
2023-12-01 23:25:46 +08:00
MadCcc
c4b8c9df93
refactor: genStyleHooks ( #46038 )
...
* refactor: genStyleHooks
* chore: update sciprt
* refactor: affix
* refactor: select
* chore: update
* refactor: update
* refactor: update
* refactor: done
* chore: code clean
* chore: code clean
* chore: fix lint
* chore: decrease size limit
* chore: code clean
* chore: code clean
* chore: remove export
2023-11-29 17:23:45 +08:00
MadCcc
96fa23ea7c
refactor: Tooltip, Popover, Dropdown, Tour support css var ( #45705 )
...
* feat: Tooltip, Popover, Dropdown, Tour support css var
* chore: update snapshot
* chore: code clean
* chore: code clean
* chore: update snapshot
* chore: update snapshot
* chore: update snapshot
* chore: add test
2023-11-08 14:56:15 +08:00
MadCcc
5f1dd427df
feat: css var ( #45589 )
...
* feat: css variables theme
* chore: temp
* chore temp
* chore: temp
* chore: temp
* chore: tmp
* chore: temp
* feat: full css variables
* feat: css var
* chore: code clean
* chore: code clean
* chore: bump cssinjs
* test: fix lint
* feat: better key logic
* feat: useStyle add param rootCls for cssVar scope
* chore: fix lint
* chore: code clean
* chore: fix lint
* perf: minimize component token size
* chore: make useId compatible
* chore: code clean
* chore: fix lint
* chore: code clean
* chore: update test case
* feat: genCSSVarRegister
* feat: RPN Calculator
* chore: add test for css var
* chore: code clean
* test: add test for calc
* feat: better calc type
* chore: code clean
* chore: update size limit
* feat: better useCSSVar
* chore: better useCSSVar
* test: add cov
* feat: better calc logic
* test: add test case
* chore: code clean
---------
Signed-off-by: MadCcc <madccc@foxmail.com>
2023-11-06 10:31:51 +08:00
MadCcc
9f55e6c11a
fix: Button two Chinese chars ( #45126 )
2023-09-27 20:17:40 +08:00
二货机器人
16f8228249
chore: merge master
2023-08-28 21:56:37 +08:00
二货爱吃白萝卜
a95662d0e1
refactor: button default not use compact style ( #44475 )
...
* refactor: button default not use compact style
* chore: clean up
2023-08-28 21:42:39 +08:00
MadCcc
27e54c9e97
feat: Button support contentFontSize token ( #44257 )
...
* feat: Button support contentFontSize token
* fix: token
2023-08-17 13:51:39 +08:00
Grant Chan
947ea38325
fix(Button): fix fontSizeSM token not working ( #44217 )
...
Co-authored-by: Grant Chan <grantchan@metaarchit.com>
2023-08-16 20:14:32 +08:00
MadCcc
4fe27ba027
feat: button component token ( #44090 )
...
* feat: button component token
* chore: add demo
* chore: update
2023-08-08 14:03:31 +08:00
kiner-tang(文辉)
ef7b6e888b
fix: resolve ghost button lose disabled state when use type='ghost' ( #43558 )
2023-07-14 17:05:59 +08:00
洋
cb338a2c61
fix: Button disabled style with link or href case ( #43091 )
...
* fix: Button disabled style with link or href case
* chore: update
* fix: update link disable logic
* test: update snapshot
* chore: update
* chore: update code
Co-authored-by: wxh16144 <wxh16144@users.noreply.github.com>
* Update components/button/style/index.ts
Co-authored-by: Wuxh <wxh16144@qq.com>
---------
Co-authored-by: 洋 <hetongyang@bytedance.com>
Co-authored-by: wuxh <wxh1220@gmail.com>
Co-authored-by: wxh16144 <wxh16144@users.noreply.github.com>
Co-authored-by: MadCcc <1075746765@qq.com>
Co-authored-by: Wuxh <wxh16144@qq.com>
2023-06-30 14:19:06 +08:00
kiner-tang(文辉)
f0a94139e7
fix(Button): button's children should be disabled when button is disabled ( #42949 )
...
* fix: button's children should be disabled when button is disabled
* feat: update test case
* feat: update test case
2023-06-12 10:22:32 +08:00
MadCcc
5d53884919
fix: fix wrong button icon size and margin ( #42516 )
2023-05-22 13:37:41 +08:00