Skip to content

Commit d1c5da7

Browse files
committed
fix(toolbar): use correct color for md
1 parent b243e73 commit d1c5da7

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

core/src/css/palettes/dark.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ $colors: (
187187
--ion-text-color-step-950: #1e1e1e;
188188
// TODO(FW-4004): Implement the following components to the dark theme in ionic modular
189189
--ion-item-background: #1e1e1e;
190-
--ion-toolbar-background: #1f1f1f;
191190
--ion-tab-bar-background: #1f1f1f;
192191
--ion-card-background: #1e1e1e;
193192
}

core/src/css/palettes/high-contrast-dark.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ $lightest-text-color: $text-color;
180180
// TODO(FW-4005): Implement the following components to the high contrast dark theme in ionic modular
181181
--ion-border-color: #222222;
182182
--ion-item-background: #1e1e1e;
183-
--ion-toolbar-background: #1f1f1f;
184183
--ion-tab-bar-background: #1f1f1f;
185184
--ion-card-background: #1e1e1e;
186185
--ion-text-color-step-50: #{mix($darkest-text-color, $lightest-text-color, 5%)};

core/src/themes/md/default.tokens.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export const defaultTheme: DefaultTheme = {
113113
borderColor: 'var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-gray-150)))',
114114
},
115115
IonToolbar: {
116+
bg: `var(--ion-toolbar-background, ${baseDefaultTheme.color!.white})`,
116117
borderColor: 'var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-gray-150)))',
117118
},
118119
},

core/src/themes/md/high-contrast.tokens.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ import type { HighContrastTheme } from '../themes.interfaces';
33

44
export const highContrastTheme: HighContrastTheme = {
55
...baseHighContrastTheme,
6+
7+
components: {
8+
IonToolbar: {
9+
bg: '#1f1f1f',
10+
},
11+
},
612
};

core/src/themes/native/native.theme.default.md.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ $tabbar-md-color-selected: var(--ion-tab-bar-color-selected, ion-color(primary,
1818

1919
// Material Design Toolbar
2020
// --------------------------------------------------
21-
$toolbar-md-background: var(--ion-toolbar-background, $background-color);
2221
$toolbar-md-color: var(--ion-toolbar-color, var(--ion-text-color, #424242));
2322

2423
// Material Design List & List Items

0 commit comments

Comments
 (0)