Wei Zhu
1ed9fed2cf
Improve Button and Tag types
7 years ago
Zheeeng
24e373a812
Remove span.ant-tag-text in Tag, and remove type casting in Dropdown ( #9055 )
* Remove span.ant-tag-text
Warp React.ReactNode with span element is not suggested. It may cause anti-specification problem: `<span><span>I'm spec breaker</span></span>`. span is not a general tags container.
Another benefit from this change is keeping the same structure with CheckableTag.
After inspecting the removing of the style of .ant-tag-text, seems bringing no problems. The old example employeed this css class has gone long long time ago. See: 0635877a51
* Use React.Children.only api to supress type casting
By codes, the children and the overlay of Dropdown must be **single** and **valid React.ReactElement**. React.Children.only takes it and report more friendly React internal built error messages.
* Revert hack CSS styles: filling .ant-tag's block area with orphan child anchor
7 years ago
afc163
c0b7bdb9f3
Tweak components style detail
7 years ago
Wei Zhu
479a5cb743
Remove allowSyntheticDefaultImports ( #8218 )
7 years ago
afc163
9b552087cd
Fix tag test case
7 years ago
chaofeis
c168a92f18
docs: add missing key prop for controlled tag demo ( #1 ) ( #8147 )
7 years ago
偏右
bdceb5f083
Review fix ( #8125 )
* Fix style
* Fix style
* fix lint
* Fix more styles
* Fix more styles
* update snap
7 years ago
ddcat1115
b7a7758f37
try to fix ci
7 years ago
Wei Zhu
36227a10db
docs: sort api table
7 years ago
monkindey
0bc5936b23
resolve conflicted files
7 years ago
afc163
91ffaea060
fix tag radius
7 years ago
偏右
ffffd0f4c5
Fix styles ( #7924 )
* update demo
* Fix styles
* fix snap
* Fix back-top ci
7 years ago
afc163
fe44e33689
Tweak tag styles
7 years ago
afc163
e2c4ad3ba7
More preseted colors of tag
7 years ago
Wei Zhu
c5487ad1eb
React 16 + Enzyme 3
7 years ago
afc163
89c507c4ba
pink => magenta
7 years ago
afc163
934c4c0de1
finish whole color pallate
7 years ago
偏右
2bced36f0c
New component styles ( #7731 )
* Tweak button padding
* upgrade input and button size
* update form controls size
* update components size
* Add lemon color and update rate color
* Add new icons
* update layout style
* breadcrumb and dropdown
* update menu arrow width
* update layout and menu
* update steps
* fix var name
* update cascasder style
* Update DatePicker
* update InputNumber and Mention
* radio and switch
* select and transfer
* TimePicker & Upload
* more components
* calendar and list
* Tree Timeline Popover Tag
* divider modal popover
* update search input
* update card style
* update switch disabled opacity
* update shoadow and mask
* Add v2-compatible-reset.less
* Fix undefined className
* update snahshotssssssssssssssssss 👻
7 years ago
ChaXinyu
14e2a56b75
export components interface ( #7654 )
* export components interface
* export specific props
* fix formItem missed import
7 years ago
偏右
759b0bb821
seperate reset styles ( #7682 )
* seperate reset styles
* not reset ul/ol/p/heading
* revert reset.less idea
* move label style into ant-form-item, #5851
* revert reset.less idea
* update base.less
* Better typography from bootstrap@4
use reboot replace normalize
ref:
b4d84b9cdf/scss/_reboot.scss
close #6162
7 years ago
Khalifa Lame
fab83990c2
docs: update Tag english doc ( #7645 )
Fixed typos.
7 years ago
jiang
7a5e11c799
fix: tabs show scroll anim and tag anim ease ( #7218 )
* fix: tabs show scroll anim and tag anim ease
* update snapshot
7 years ago
Zheeeng
d6dde83247
Fix typo ( #7170 )
7 years ago
afc163
d98d7a451c
Add @tag-font-size
7 years ago
afc163
8f98ae80bd
Tweak CheckableTag style
7 years ago
Randy
35ae41f618
remove `any` type in Tag ( #7015 )
7 years ago
afc163
69b5acb45f
More test cases
7 years ago
paranoidjk
ba168b826f
refactor: use spread operator replace object-assign ( #6677 )
8 years ago
afc163
fd625ef1a0
upgrade and fix tslint problems
8 years ago
Benjy Cui
0e5431d21b
deps: upgrade antd-tools and code style
8 years ago
Graeme Yeates
adfca8ae78
Use @tag-default-bg for multiselect tags
8 years ago
Benjy Cui
12a6060304
docs: fix code style
8 years ago
Graeme Yeates
694f73d060
Add variable to control tag default color ( #6039 )
8 years ago
Graeme Yeates
5841746ec9
Decompose @background-color-base into several variables
8 years ago
afc163
b72626d19c
update tag demo
8 years ago
Wei Zhu
f6b1e942e3
Jest 19 ( #5361 )
* Upgeade to jest 19
* Use jest.spyOn
8 years ago
ddcat1115
7ab95b7eae
- fix ts error ( #5145 )
- typescript upgrade to 2.2.1
8 years ago
afc163
54dde4f5bc
Hide yellow tag for no compatible with WCAG 2.0 on contrast ratio
8 years ago
Benjy Cui
200b88246f
docs: update docs format
8 years ago
Graeme Yeates
1006015ef0
Add border customization variables ( #4734 )
* Add border customization variables (#4712 )
* Make border styles customizable (fixes #4712 )
8 years ago
afc163
bcd3b63c50
update tag colorful demo
8 years ago
afc163
9598169f90
fix tag snapshot test
8 years ago
afc163
f343d6c606
fix tag snapshot test
8 years ago
afc163
a183ee8ede
Adjust Tag vertical-align and margin
8 years ago
afc163
b2ee5b2319
Adjust Tag vertical-align and margin
8 years ago
Benjy Cui
3e17551b7e
site: improve build speed
8 years ago
偏右
10396419b5
Add preset color Tag ( #4571 )
* Add preset color Tag, close #4528
* Use color back over presetColor
* fix snap
* simplify isPresetColor
8 years ago
偏右
d811ebee5c
New color system ( #4426 )
* Add new color patterns algorithm
* Add color palettes
* update other colors
* fix gray color
* update more tint/shade to colorPalette
* new font color
* Update doc for new color system
* improve doc style
8 years ago
Benjy Cui
77801ff436
fix: CI failed and ts null check
8 years ago
Benjy Cui
1351b5da5d
refactor: remove splitObject
8 years ago