diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml
index ae73cc6fd0..a2813160f0 100644
--- a/.github/workflows/deploy-site.yml
+++ b/.github/workflows/deploy-site.yml
@@ -1,10 +1,10 @@
name: Deploy website
on:
release:
- actions:
- - published
+ types: [published]
branches:
- master
+
jobs:
build-and-deploy:
runs-on: ubuntu-latest
diff --git a/.github/workflows/publish-to-github-package.yml b/.github/workflows/publish-to-github-package.yml
new file mode 100644
index 0000000000..a54bdb9fed
--- /dev/null
+++ b/.github/workflows/publish-to-github-package.yml
@@ -0,0 +1,28 @@
+name: Publish to github-package
+on:
+ release:
+ types: [published]
+
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: checkout
+ uses: actions/checkout@master
+
+ - uses: actions/setup-node@v1
+ with:
+ node-version: '12.x'
+ registry-url: 'https://npm.pkg.github.com'
+
+ - name: install
+ run: npm install
+
+ - name: compile
+ run: npm run compile
+
+ - name: publish
+ run: npm publish
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md
index 1b25d53f0d..5187bdf3ed 100644
--- a/CHANGELOG.zh-CN.md
+++ b/CHANGELOG.zh-CN.md
@@ -66,7 +66,7 @@ timeline: true
- Descriptions
- 🐞 修复 Descriptions.Item 最后一个宽度计算不正确的问题。[#18568](https://github.com/ant-design/ant-design/pull/18568)
- 🐞 Description.Item 在渲染时会复用用户提供的 `key`。[#18578](https://github.com/ant-design/ant-design/pull/18578)
-- 🐞 修复 Tab 内容宽度在 Safari 下不正确的问题。[#18574](https://github.com/ant-design/ant-design/pull/18574)
+- 🐞 修复 Tabs 内容宽度在 Safari 下不正确的问题。[#18574](https://github.com/ant-design/ant-design/pull/18574)
- 🐞 修复 Mentions 的 `prefix` 为空字符串时,弹窗位置不正确的问题。[#18576](https://github.com/ant-design/ant-design/pull/18576)
- 🐞 修复 Upload.Dragger 在 `multiple` 为 false 时,仍然可以上传多份文件的问题。[#18580](https://github.com/ant-design/ant-design/pull/18580)
- 🐞 修复 `Button[href]` 在 Card `actions` 中样式变形的问题。[#18588](https://github.com/ant-design/ant-design/pull/18588)
diff --git a/README-zh_CN.md b/README-zh_CN.md
index d361388c00..0565c1c042 100644
--- a/README-zh_CN.md
+++ b/README-zh_CN.md
@@ -8,7 +8,7 @@
-一套企业级的 UI 设计语言和 React 实现。
+一套企业级 UI 设计语言和 React 组件库。
[![CircleCI branch](https://img.shields.io/circleci/project/github/ant-design/ant-design/master.svg?style=flat-square)](https://circleci.com/gh/ant-design/ant-design) [![Codecov](https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/ant-design/ant-design/branch/master) [![npm package](https://img.shields.io/npm/v/antd.svg?style=flat-square)](https://www.npmjs.org/package/antd) [![NPM downloads](http://img.shields.io/npm/dm/antd.svg?style=flat-square)](http://npmjs.com/antd)
diff --git a/README.md b/README.md
index ac49dbdd98..72f52e04c4 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
-An enterprise-class UI design language and React implementation.
+An enterprise-class UI design language and React UI library.
[![CircleCI branch](https://img.shields.io/circleci/project/github/ant-design/ant-design/master.svg?style=flat-square)](https://circleci.com/gh/ant-design/ant-design) [![Codecov](https://img.shields.io/codecov/c/github/ant-design/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/ant-design/ant-design/branch/master) [![](https://flat.badgen.net/npm/v/antd?icon=npm)](https://www.npmjs.com/package/antd) [![NPM downloads](http://img.shields.io/npm/dm/antd.svg?style=flat-square)](http://npmjs.com/antd)
diff --git a/components/alert/__tests__/__snapshots__/demo.test.js.snap b/components/alert/__tests__/__snapshots__/demo.test.js.snap
index f0d5138702..a7a82672eb 100644
--- a/components/alert/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/alert/__tests__/__snapshots__/demo.test.js.snap
@@ -68,10 +68,10 @@ exports[`renders ./components/alert/demo/banner.md correctly 1`] = `
-
-
+
-
-
+
Error Description Error Description Error Description Error Description Error Description Error Description
-
-
+
`;
@@ -260,17 +260,17 @@ exports[`renders ./components/alert/demo/close-text.md correctly 1`] = `
-
Close Now
-
+
`;
@@ -932,10 +932,10 @@ exports[`renders ./components/alert/demo/smooth-closed.md correctly 1`] = `
-
-
+
placeholder text here
diff --git a/components/alert/index.tsx b/components/alert/index.tsx
index adfe50de6d..b123248ac3 100755
--- a/components/alert/index.tsx
+++ b/components/alert/index.tsx
@@ -33,7 +33,7 @@ export interface AlertProps {
/** Additional content of Alert */
description?: React.ReactNode;
/** Callback when close Alert */
- onClose?: React.MouseEventHandler;
+ onClose?: React.MouseEventHandler;
/** Trigger when animation ending of Alert */
afterClose?: () => void;
/** Whether to show icon */
@@ -70,7 +70,7 @@ export default class Alert extends React.Component {
closed: false,
};
- handleClose = (e: React.MouseEvent) => {
+ handleClose = (e: React.MouseEvent) => {
e.preventDefault();
const dom = ReactDOM.findDOMNode(this) as HTMLElement;
dom.style.height = `${dom.offsetHeight}px`;
@@ -134,14 +134,14 @@ export default class Alert extends React.Component {
);
const closeIcon = closable ? (
-
{closeText ? {closeText} : }
-
+
) : null;
const dataOrAriaProps = getDataOrAriaProps(this.props);
diff --git a/components/alert/style/index.less b/components/alert/style/index.less
index a945b3b1ed..abf540db96 100644
--- a/components/alert/style/index.less
+++ b/components/alert/style/index.less
@@ -74,6 +74,8 @@
overflow: hidden;
font-size: @font-size-sm;
line-height: 22px;
+ border: none;
+ background-color: transparent;
cursor: pointer;
.@{iconfont-css-prefix}-close {
diff --git a/components/avatar/style/index.less b/components/avatar/style/index.less
index f2c22c0376..e305105458 100644
--- a/components/avatar/style/index.less
+++ b/components/avatar/style/index.less
@@ -37,6 +37,7 @@
display: block;
width: 100%;
height: 100%;
+ object-fit: cover;
}
}
diff --git a/components/button/__tests__/__snapshots__/index.test.js.snap b/components/button/__tests__/__snapshots__/index.test.js.snap
index fa70f1f7ca..4259fdf439 100644
--- a/components/button/__tests__/__snapshots__/index.test.js.snap
+++ b/components/button/__tests__/__snapshots__/index.test.js.snap
@@ -155,6 +155,17 @@ exports[`Button renders Chinese characters correctly 6`] = `
`;
+exports[`Button renders Chinese characters correctly 7`] = `
+
+`;
+
exports[`Button renders correctly 1`] = `