Skip to content

Commit 99efa36

Browse files
committed
fix(tabs): add sass variable for inactive opacity and pass it to the colors loop
1 parent 0386476 commit 99efa36

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/tabs/tabs.md.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ $tabbar-md-item-icon-size: 2.4rem !default;
1212
$tabbar-md-item-height: 4.8rem !default;
1313

1414
$tab-button-md-active-color: $toolbar-md-active-color !default;
15-
$tab-button-md-inactive-color: rgba($toolbar-md-inactive-color, .7) !default;
15+
$tab-button-md-inactive-opacity: .7 !default;
16+
$tab-button-md-inactive-color: rgba($toolbar-md-inactive-color, $tab-button-md-inactive-opacity) !default;
1617

1718

1819
ion-tabbar {
@@ -103,7 +104,7 @@ tab-highlight {
103104
background-color: $color-base;
104105

105106
.tab-button {
106-
color: $color-contrast;
107+
color: rgba($color-contrast, $tab-button-md-inactive-opacity);
107108
}
108109

109110
.tab-button:hover:not(.disable-hover),

src/components/tabs/tabs.wp.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ $tabbar-wp-item-icon-size: 2.4rem !default;
1212
$tabbar-wp-item-height: 4.8rem !default;
1313

1414
$tab-button-wp-active-color: $toolbar-wp-active-color !default;
15-
$tab-button-wp-inactive-color: rgba($toolbar-wp-inactive-color, .7) !default;
15+
$tab-button-wp-inactive-opacity: .7 !default;
16+
$tab-button-wp-inactive-color: rgba($toolbar-wp-inactive-color, $tab-button-wp-inactive-opacity) !default;
1617

1718
$tab-button-wp-background-activated: rgba(0, 0, 0, .1) !default;
1819

@@ -96,7 +97,7 @@ ion-tabbar {
9697
background-color: $color-base;
9798

9899
.tab-button {
99-
color: $color-contrast;
100+
color: rgba($color-contrast, $tab-button-wp-inactive-opacity);
100101
}
101102

102103
.tab-button:hover:not(.disable-hover),

0 commit comments

Comments
 (0)