ant-design/components/tag
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
2018-02-04 01:29:56 -06:00
..
__tests__ Remove span.ant-tag-text in Tag, and remove type casting in Dropdown (#9055) 2018-02-04 01:29:56 -06:00
demo Tweak components style detail 2017-11-27 14:51:46 +08:00
style Remove span.ant-tag-text in Tag, and remove type casting in Dropdown (#9055) 2018-02-04 01:29:56 -06:00
CheckableTag.tsx Remove allowSyntheticDefaultImports (#8218) 2017-11-17 14:38:54 +08:00
index.en-US.md docs: sort api table 2017-10-25 10:25:44 +08:00
index.tsx Remove span.ant-tag-text in Tag, and remove type casting in Dropdown (#9055) 2018-02-04 01:29:56 -06:00
index.zh-CN.md docs: sort api table 2017-10-25 10:25:44 +08:00