Skip to content

Commit 92aa26f

Browse files
fix: removing blue hover color and ink bar from tabs
1 parent 2aa1a9b commit 92aa26f

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

projects/components/src/tabs/content/tab-group.component.scss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
background: $gray-3 radial-gradient(circle, transparent 1%, $gray-3 1%) center/12000%;
4242

4343
&.active {
44-
background-color: $blue-5;
44+
background-color: $gray-9;
4545
}
4646
}
4747
}
4848

4949
&:active {
5050
.ink-bar {
51-
background-color: $blue-5;
51+
background-color: $gray-9;
5252
background-size: 100%;
5353
transition: background 0s;
5454
}
@@ -77,6 +77,15 @@
7777
display: flex;
7878
flex-direction: row;
7979
align-items: center;
80+
color: $gray-5;
81+
82+
&:hover {
83+
color: $gray-9;
84+
}
85+
86+
&.active {
87+
color: $gray-9;
88+
}
8089

8190
.tab-label-tag {
8291
margin-left: 4px;
@@ -96,6 +105,6 @@
96105
}
97106

98107
&.active {
99-
background-color: $blue-5;
108+
background-color: $gray-9;
100109
}
101110
}

projects/components/src/tabs/content/tab-group.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { TabComponent } from './tab/tab.component';
2727
>
2828
<mat-tab *ngFor="let tab of this.tabs; index as i">
2929
<ng-template mat-tab-label>
30-
<div class="tab-label">
30+
<div class="tab-label" [ngClass]="{ active: this.activeTabIndex === i }">
3131
{{ tab.label }}
3232
<ng-container *ngIf="tab.labelTag">
3333
<ht-label-tag

projects/components/src/tabs/navigable/navigable-tab-group.component.scss

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@
1717
color: $gray-9;
1818
}
1919

20+
::ng-deep .ht-link:hover {
21+
color: $gray-9;
22+
}
23+
2024
::ng-deep .mat-ink-bar {
2125
// Required deep since added dynamically by material
2226
height: 4px;
23-
background-color: $gray-7;
27+
background-color: $gray-9;
2428
}
2529
}
2630
}
@@ -48,14 +52,14 @@
4852
background: $gray-3 radial-gradient(circle, transparent 1%, $gray-3 1%) center/12000%;
4953

5054
&.active {
51-
background-color: $gray-6;
55+
background-color: $gray-9;
5256
}
5357
}
5458
}
5559

5660
&:active {
5761
.ink-bar {
58-
background-color: $gray-7;
62+
background-color: $gray-9;
5963
background-size: 100%;
6064
transition: background 0s;
6165
}
@@ -68,7 +72,6 @@
6872
padding: 0;
6973
font-size: 16px;
7074
font-weight: 500;
71-
color: $gray-5;
7275
opacity: 1;
7376
padding-bottom: 6px;
7477
}
@@ -85,7 +88,7 @@
8588
transition: background 0.6s;
8689

8790
&.active {
88-
background-color: $gray-7;
91+
background-color: $gray-9;
8992
}
9093
}
9194

0 commit comments

Comments
 (0)