Skip to content

Commit d0eaabc

Browse files
authored
fix(tabs): correct tabpane-background-color css variables (#3255)
* fix(image): 修复内联样式不生效 * fix(tabs): css变量修复 * fix(tabs): css变量修复
1 parent fd247f0 commit d0eaabc

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

src/packages/tabpane/tabpane.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
width: 100%;
33
flex-shrink: 0;
44
display: block;
5-
background-color: $tabs-tabpane-backgroundColor;
5+
background-color: $tabs-tabpane-background-color;
66
color: $color-title;
77
padding: $tabs-tabpane-padding;
88
box-sizing: border-box;

src/packages/tabs/doc.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,6 @@ The component provides the following CSS variables, which can be used to customi
259259
| \--nutui-tabs-vertical-tab-line-width | Vertical title line width | `3px` |
260260
| \--nutui-tabs-vertical-tab-line-height | The height of the vertical title line | `12px` |
261261
| \--nutui-tabs-tabpane-padding | Padding of the Tabpane content | `24px 20px` |
262-
| \--nutui-tabs-tabpane-backgroundColor | BackgroundColor of the Tabpane content | `#fff` |
262+
| \--nutui-tabs-tabpane-background-color | BackgroundColor of the Tabpane content | `#fff` |
263263

264264
<Contribution name="Tabs" />

src/packages/tabs/doc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,6 @@ import { Tabs } from '@nutui/nutui-react'
259259
| \--nutui-tabs-vertical-tab-line-width | 垂直方向标题线条的宽度 | `3px` |
260260
| \--nutui-tabs-vertical-tab-line-height | 垂直方向标题线条的高度 | `12px` |
261261
| \--nutui-tabs-tabpane-padding | Tabpane 的内边距 | `24px 20px` |
262-
| \--nutui-tabs-tabpane-backgroundColor | Tabpane 的背景色 | `#fff` |
262+
| \--nutui-tabs-tabpane-background-color | Tabpane 的背景色 | `#fff` |
263263

264264
<Contribution name="Tabs" />

src/packages/tabs/doc.taro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,6 @@ import { Tabs } from '@nutui/nutui-react-taro'
257257
| \--nutui-tabs-vertical-tab-line-width | 垂直方向标题线条的宽度 | `3px` |
258258
| \--nutui-tabs-vertical-tab-line-height | 垂直方向标题线条的高度 | `12px` |
259259
| \--nutui-tabs-tabpane-padding | Tabpane 的内边距 | `24px 20px` |
260-
| \--nutui-tabs-tabpane-backgroundColor | Tabpane 的背景色 | `#fff` |
260+
| \--nutui-tabs-tabpane-background-color | Tabpane 的背景色 | `#fff` |
261261

262262
<Contribution name="Tabs" />

src/packages/tabs/doc.zh-TW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,6 @@ import { Tabs } from '@nutui/nutui-react'
257257
| \--nutui-tabs-vertical-tab-line-width | 垂直方向標題線條的寬度 | `3px` |
258258
| \--nutui-tabs-vertical-tab-line-height | 垂直方向標題線條的高度 | `12px` |
259259
| \--nutui-tabs-tabpane-padding | Tabpane 的內邊距 | `24px 20px` |
260-
| \--nutui-tabs-tabpane-backgroundColor | Tabpane 的背景色 | `#fff` |
260+
| \--nutui-tabs-tabpane-background-color | Tabpane 的背景色 | `#fff` |
261261

262262
<Contribution name="Tabs" />

src/styles/variables-jmapp.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,8 +1981,8 @@ $tabs-titles-item-smile-bottom: var(
19811981
-10px
19821982
) !default;
19831983
$tabs-tabpane-padding: var(--nutui-tabs-tabpane-padding, 24px 20px) !default;
1984-
$tabs-tabpane-backgroundColor: var(
1985-
--nutui-tabs-tabpane-backgroundColor,
1984+
$tabs-tabpane-background-color: var(
1985+
--nutui-tabs-tabpane-background-color,
19861986
#fff
19871987
) !default;
19881988
// indicator(✅)

src/styles/variables-jrkf.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,8 +2084,8 @@ $tabs-titles-item-smile-bottom: var(
20842084
-10px
20852085
) !default;
20862086
$tabs-tabpane-padding: var(--nutui-tabs-tabpane-padding, 24px 20px) !default;
2087-
$tabs-tabpane-backgroundColor: var(
2088-
--nutui-tabs-tabpane-backgroundColor,
2087+
$tabs-tabpane-background-color: var(
2088+
--nutui-tabs-tabpane-background-color,
20892089
#fff
20902090
) !default;
20912091
// indicator(✅)

src/styles/variables.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,8 +1876,8 @@ $tabs-titles-item-smile-bottom: var(
18761876
-10%
18771877
) !default;
18781878
$tabs-tabpane-padding: var(--nutui-tabs-tabpane-padding, 24px 20px) !default;
1879-
$tabs-tabpane-backgroundColor: var(
1880-
--nutui-tabs-tabpane-backgroundColor,
1879+
$tabs-tabpane-background-color: var(
1880+
--nutui-tabs-tabpane-background-color,
18811881
#fff
18821882
) !default;
18831883
// indicator(✅)

0 commit comments

Comments
 (0)