From 568a999137e0de53e75476fe96abfa3842c4c9af Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 22 Jul 2021 15:05:39 +0800 Subject: [PATCH] fix: Tabs tabBarGutter wrong style (#31469) * chore: upgrade rc-tabs * fix: Tabs tabBarGutter bugs 1. first tab should not have gutter 2. add button lost gutter 3. rtl issue close #31462 * fix snapshot --- .../tabs/__tests__/__snapshots__/index.test.js.snap | 2 -- components/tabs/style/index.less | 1 + components/tabs/style/rtl.less | 10 ++++++++-- package.json | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/components/tabs/__tests__/__snapshots__/index.test.js.snap b/components/tabs/__tests__/__snapshots__/index.test.js.snap index 8400aaa127..e149e89f3a 100644 --- a/components/tabs/__tests__/__snapshots__/index.test.js.snap +++ b/components/tabs/__tests__/__snapshots__/index.test.js.snap @@ -128,7 +128,6 @@ exports[`Tabs tabBarGutter should work 1`] = ` >
div > .@{tab-prefix-cls}-nav { .@{tab-prefix-cls}-tab + .@{tab-prefix-cls}-tab { .@{tab-prefix-cls}-rtl& { - margin-right: 0; - margin-left: @tabs-card-gutter; + margin-right: @tabs-card-gutter; + margin-left: 0; + } + } + .@{tab-prefix-cls}-nav-add { + .@{tab-prefix-cls}-rtl& { + margin-right: @tabs-card-gutter; + margin-left: 0; } } } diff --git a/package.json b/package.json index 116483f746..4d186a2e9b 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "rc-steps": "~4.1.0", "rc-switch": "~3.2.0", "rc-table": "~7.15.1", - "rc-tabs": "~11.9.1", + "rc-tabs": "~11.10.0", "rc-textarea": "~0.3.0", "rc-tooltip": "~5.1.1", "rc-tree": "~4.2.1",