From 5d8e93b6c1e23076eaf18318b63af2db46056a83 Mon Sep 17 00:00:00 2001 From: Jehu Date: Mon, 12 Jul 2021 19:57:05 +0800 Subject: [PATCH 01/18] fix: add Table.SELECTION_NONE for Russian localization (#31361) --- components/locale/ru_RU.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/locale/ru_RU.tsx b/components/locale/ru_RU.tsx index ae2cf4d1d0..d25040e9d2 100644 --- a/components/locale/ru_RU.tsx +++ b/components/locale/ru_RU.tsx @@ -25,6 +25,7 @@ const localeValues: Locale = { emptyText: 'Нет данных', selectAll: 'Выбрать всё', selectInvert: 'Инвертировать выбор', + selectNone: 'Очистить все данные', selectionAll: 'Выбрать все данные', sortTitle: 'Сортировка', expand: 'Развернуть строку', From 972e3c2edd5a442733b36cde220bb096fb9a41f0 Mon Sep 17 00:00:00 2001 From: Peach Date: Tue, 13 Jul 2021 11:47:30 +0800 Subject: [PATCH 02/18] fix: top border of the table summary row (#31363) * fix: top border of the table summary row (#31337) * refactor: return to use container box-shadow for summary * refactor: revert shadow container of table summary --- components/table/style/index.less | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/table/style/index.less b/components/table/style/index.less index 42d8f0f9f7..942b9bc5e8 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -166,6 +166,8 @@ // =========================== Summary ============================ &-summary { + position: relative; + z-index: @zindex-table-fixed; background: @table-bg; div& { From c1d52d3b9b24fca3558fc898381dd2a8eec97800 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 13 Jul 2021 12:03:19 +0800 Subject: [PATCH 03/18] fix: Table sticky header background (#31373) close #31362 --- components/style/themes/dark.less | 1 + components/style/themes/default.less | 2 ++ components/table/style/index.less | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/components/style/themes/dark.less b/components/style/themes/dark.less index f11cb04ccb..00ec8c7bdd 100644 --- a/components/style/themes/dark.less +++ b/components/style/themes/dark.less @@ -314,6 +314,7 @@ @table-header-sort-bg: #262626; @table-header-filter-active-bg: #434343; @table-header-sort-active-bg: #303030; +@table-fixed-header-sort-active-bg: #222; @table-filter-btns-bg: @popover-background; @table-expanded-row-bg: @table-header-bg; @table-filter-dropdown-bg: @popover-background; diff --git a/components/style/themes/default.less b/components/style/themes/default.less index dfaa27ce21..d0f56312dd 100644 --- a/components/style/themes/default.less +++ b/components/style/themes/default.less @@ -615,6 +615,8 @@ // Sorter // Legacy: `table-header-sort-active-bg` is used for hover not real active @table-header-sort-active-bg: rgba(0, 0, 0, 0.04); +@table-fixed-header-sort-active-bg: hsv(0, 0, 96%); + // Filter @table-header-filter-active-bg: rgba(0, 0, 0, 0.04); @table-filter-btns-bg: inherit; diff --git a/components/table/style/index.less b/components/table/style/index.less index 942b9bc5e8..20a6c5621e 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -229,7 +229,7 @@ // https://github.com/ant-design/ant-design/issues/30969 &.@{table-prefix-cls}-cell-fix-left:hover, &.@{table-prefix-cls}-cell-fix-right:hover { - background: lighten(@black, 96%); + background: @table-fixed-header-sort-active-bg; } } @@ -643,7 +643,9 @@ &-holder { position: sticky; z-index: @table-sticky-zindex; + background: @component-background; } + &-scroll { position: sticky; bottom: 0; From ba6de5ba1810968885c99950b5a9197bd01e4ce5 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 13 Jul 2021 16:17:48 +0800 Subject: [PATCH 04/18] style: fix input clear icon color css priority (#31378) --- components/input/style/allow-clear.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/input/style/allow-clear.less b/components/input/style/allow-clear.less index ca1bd5e734..57848424d6 100644 --- a/components/input/style/allow-clear.less +++ b/components/input/style/allow-clear.less @@ -1,7 +1,7 @@ @import './index'; // ========================= Input ========================= -.@{ant-prefix}-input-clear-icon { +.@{ant-prefix}-input-clear-icon.@{iconfont-css-prefix} { margin: 0 @input-affix-margin; color: @disabled-color; font-size: @font-size-sm; From fe683a475091cf500e0fe4b0e1803cb1268bbf1f Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 13 Jul 2021 20:08:15 +0800 Subject: [PATCH 05/18] fix: clear icon breaking style by #31378 https://www.argos-ci.com/ant-design/ant-design/builds/1341 --- components/input/style/allow-clear.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/input/style/allow-clear.less b/components/input/style/allow-clear.less index 57848424d6..5284e0d6b3 100644 --- a/components/input/style/allow-clear.less +++ b/components/input/style/allow-clear.less @@ -1,7 +1,7 @@ @import './index'; // ========================= Input ========================= -.@{ant-prefix}-input-clear-icon.@{iconfont-css-prefix} { +.@{iconfont-css-prefix}.@{ant-prefix}-input-clear-icon { margin: 0 @input-affix-margin; color: @disabled-color; font-size: @font-size-sm; From 3a1a82970807b140f588eac735787d60357e1ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Tue, 13 Jul 2021 21:38:19 +0800 Subject: [PATCH 06/18] fix: TextArea style missing (#31391) --- components/input/TextArea.tsx | 1 + .../__tests__/__snapshots__/demo.test.js.snap | 28 +++++++++++++++++++ components/input/demo/textarea-resize.md | 1 + 3 files changed, 30 insertions(+) diff --git a/components/input/TextArea.tsx b/components/input/TextArea.tsx index 815ea26555..136b2dca8c 100644 --- a/components/input/TextArea.tsx +++ b/components/input/TextArea.tsx @@ -157,6 +157,7 @@ const TextArea = React.forwardRef( handleReset={handleReset} ref={clearableInputRef} bordered={bordered} + style={showCount ? undefined : style} /> ); diff --git a/components/input/__tests__/__snapshots__/demo.test.js.snap b/components/input/__tests__/__snapshots__/demo.test.js.snap index 48c8abf63d..824a1a749f 100644 --- a/components/input/__tests__/__snapshots__/demo.test.js.snap +++ b/components/input/__tests__/__snapshots__/demo.test.js.snap @@ -3207,6 +3207,34 @@ Array [ > The autoSize property applies to textarea nodes, and only the height changes automatically. In addition, autoSize can be set to an object, specifying the minimum number of rows and the maximum number of rows. The autoSize property applies to textarea nodes, and only the height changes automatically. In addition, autoSize can be set to an object, specifying the minimum number of rows and the maximum number of rows. , + +