ant-design/components/button/demo
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
..
_semantic.tsx site: code optimization (#47456) 2024-02-16 20:50:31 +08:00
basic.md docs: improved grammar on certain documentation pages (#49374) 2024-06-12 14:27:15 +08:00
basic.tsx demo: update wrap="wrap" => wrap (#48409) 2024-04-12 12:10:38 +08:00
block.md docs: improved grammar on certain documentation pages (#49374) 2024-06-12 14:27:15 +08:00
block.tsx demo: update Button demo layout to Flex Component (#45566) 2023-10-29 02:11:17 +08:00
chinese-chars-loading.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
chinese-chars-loading.tsx demo: update wrap="wrap" => wrap (#48409) 2024-04-12 12:10:38 +08:00
color-variant.md feat(Button): support variant and color (#50051) 2024-09-03 17:39:02 +08:00
color-variant.tsx feat(Button): support variant and color (#50051) 2024-09-03 17:39:02 +08:00
component-token.md feat: button component token (#44090) 2023-08-08 14:03:31 +08:00
component-token.tsx demo: update wrap="wrap" => wrap (#48409) 2024-04-12 12:10:38 +08:00
danger.md docs: improved grammar on certain documentation pages (#49374) 2024-06-12 14:27:15 +08:00
danger.tsx demo: update wrap="wrap" => wrap (#48409) 2024-04-12 12:10:38 +08:00
debug-block.md fix: Button block prop not work (#39992) 2023-01-06 09:46:00 +08:00
debug-block.tsx docs: format code (#48309) 2024-04-08 14:04:08 +08:00
debug-icon.md docs: improve component demo style (#38598) 2022-11-17 13:20:58 +08:00
debug-icon.tsx demo: update wrap="wrap" => wrap (#48409) 2024-04-12 12:10:38 +08:00
disabled.md docs: improve component demo style (#38598) 2022-11-17 13:20:58 +08:00
disabled.tsx demo: update Button demo layout to Flex Component (#45566) 2023-10-29 02:11:17 +08:00
ghost.md docs: improved grammar on certain documentation pages (#49374) 2024-06-12 14:27:15 +08:00
ghost.tsx demo: update wrap="wrap" => wrap (#48409) 2024-04-12 12:10:38 +08:00
icon-position.md docs: Icon button English document typo fixed (#49684) 2024-07-02 19:50:48 +08:00
icon-position.tsx fix: Button icon order and margin in rtl mode (#48821) 2024-05-08 20:07:57 +08:00
icon.md docs(button): delete useless introductions (#49820) 2024-07-11 11:52:12 +08:00
icon.tsx demo: update wrap="wrap" => wrap (#48409) 2024-04-12 12:10:38 +08:00
legacy-group.md docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
legacy-group.tsx chore: Add type util (#46923) 2024-01-11 15:55:58 +08:00
linear-gradient.md docs: improved grammar on certain documentation pages (#49374) 2024-06-12 14:27:15 +08:00
linear-gradient.tsx demo: improve button gradient demo (#49786) 2024-07-09 17:27:16 +08:00
loading.md docs: corrected a mistake of a demo description. (#43499) 2023-07-12 11:59:47 +08:00
loading.tsx demo: update wrap="wrap" => wrap (#48409) 2024-04-12 12:10:38 +08:00
multiple.md docs: unify component export file as index.tsx (#50013) 2024-07-23 22:22:24 +08:00
multiple.tsx demo: update Button demo layout to Flex Component (#45566) 2023-10-29 02:11:17 +08:00
noSpace.md feat: Button support autoInsertSpace prop (#48348) 2024-04-11 15:29:10 +08:00
noSpace.tsx demo: update wrap="wrap" => wrap (#48409) 2024-04-12 12:10:38 +08:00
size.md docs: improved grammar on certain documentation pages (#49374) 2024-06-12 14:27:15 +08:00
size.tsx demo: update wrap="wrap" => wrap (#48409) 2024-04-12 12:10:38 +08:00