Skip to content

Commit 59b0178

Browse files
committed
refactor: Dark Theme for Portal TabContainer (#8742)
1 parent f9406aa commit 59b0178

3 files changed

Lines changed: 20 additions & 8 deletions

File tree

resources/scss/src/apps/portal/shared/TabContainer.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,40 @@
88

99
.neo-tab-strip {
1010
.neo-active-tab-indicator {
11-
background-color: #3E63DD;
11+
background-color: var(--portal-tab-indicator-bg);
1212
}
1313
}
1414
}
1515

1616
// must not be inside the root class to honor the styling for tab button drag&drop
1717
.portal-shared-tab-header-toolbar.neo-tab-header-toolbar {
18-
background-color: #8BA6FF;
18+
background-color: var(--portal-tab-toolbar-bg);
1919

2020
.neo-tab-header-button.neo-button {
2121
.neo-button-glyph {
22-
color: #fff;
22+
color: var(--portal-tab-text-color);
2323
}
2424

2525
.neo-button-ripple {
26-
background-color: #3E63DD;
26+
background-color: var(--portal-tab-indicator-bg);
2727
}
2828

2929
&.neo-button.pressed .neo-tab-button-indicator {
30-
background-color: #3E63DD;
30+
background-color: var(--portal-tab-indicator-bg);
3131
}
3232

3333
.neo-button-text {
34-
color: #fff;
34+
color: var(--portal-tab-text-color);
3535
}
3636

3737
&.pressed {
3838
.neo-button-glyph {
39-
color: #3E63DD;
39+
color: var(--portal-tab-text-color-pressed);
4040
}
4141
}
4242
}
4343

4444
.neo-tab-strip .neo-active-tab-indicator {
45-
background-color: #3E63DD;
45+
background-color: var(--portal-tab-indicator-bg);
4646
}
4747
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
:root .neo-theme-neo-dark {
2+
--portal-tab-indicator-bg : var(--sem-color-bg-primary-default);
3+
--portal-tab-text-color : var(--sem-color-text-neutral-contrast);
4+
--portal-tab-text-color-pressed: var(--sem-color-text-primary-default);
5+
--portal-tab-toolbar-bg : var(--sem-color-bg-primary-hover);
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
:root .neo-theme-neo-light {
2+
--portal-tab-indicator-bg : #3E63DD;
3+
--portal-tab-text-color : #fff;
4+
--portal-tab-text-color-pressed: #3E63DD;
5+
--portal-tab-toolbar-bg : #8BA6FF;
6+
}

0 commit comments

Comments
 (0)