Skip to content

Commit 7d6c1c8

Browse files
committed
fix tab-button tokens
1 parent a22f034 commit 7d6c1c8

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

core/src/components/spinner/spinner.native.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
:host(.spinner-lines-sharp) line,
1212
:host(.spinner-lines-sharp-small) line {
1313
stroke-width: 4px;
14-
}
14+
}

core/src/components/tab-button/tab-button.common.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,6 @@
102102
display: none !important;
103103
}
104104

105-
:host(.tab-disabled) {
106-
pointer-events: none;
107-
108-
opacity: 0.4;
109-
}
110-
111105
// Tab Button: Label / Icon
112106
// --------------------------------------------------
113107

core/src/components/tab-button/tab-button.ionic.scss

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88
--focus-ring-color: #{globals.$ion-border-focus-default};
99
--focus-ring-width: #{globals.$ion-border-radius-025};
1010

11+
@include globals.typography(globals.$ion-body-action-sm);
12+
13+
position: relative;
14+
1115
align-content: center;
1216

1317
min-height: globals.$ion-scale-1200;
1418
max-height: globals.$ion-scale-1800;
15-
16-
font-size: globals.$ion-font-size-300;
17-
font-weight: globals.$ion-font-weight-medium;
18-
19-
line-height: globals.$ion-font-line-height-500;
2019
}
2120

2221
// Tab Button: Native
@@ -35,6 +34,15 @@
3534
@include globals.button-state();
3635
}
3736

37+
// Tab Button Disabled
38+
// -------------------------------------------------------------------------------
39+
40+
:host(.tab-disabled)::after {
41+
@include globals.disabled-state();
42+
43+
z-index: 1;
44+
}
45+
3846
// Tab Button Focused
3947
// -------------------------------------------------------------------------------
4048

core/src/components/tab-button/tab-button.native.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@
1414
.button-native::after {
1515
@include button-state();
1616
}
17+
18+
:host(.tab-disabled) {
19+
pointer-events: none;
20+
21+
opacity: 0.4;
22+
}

0 commit comments

Comments
 (0)