Skip to content

Commit 161b46a

Browse files
committed
feat(many): remove last bit of steps
1 parent a884809 commit 161b46a

File tree

10 files changed

+31
-29
lines changed

10 files changed

+31
-29
lines changed

core/src/components/modal/modal.ios.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
// --------------------------------------------------
66

77
:host {
8+
--ion-background-color: var(--ion-components-ion-modal-bg);
9+
--ion-toolbar-background: var(--ion-components-ion-modal-toolbar-background);
10+
--ion-toolbar-border-color: var(--ion-components-ion-modal-toolbar-border-color);
11+
812
--backdrop-opacity: var(--ion-backdrop-opacity, 0.4);
913
}
1014

core/src/css/palettes/dark.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,6 @@ $colors: (
138138
--ion-item-background: #000000;
139139
--ion-card-background: #1c1c1d;
140140
}
141-
142-
& ion-modal {
143-
--ion-background-color: var(--ion-color-step-100, var(--ion-background-color-step-100));
144-
--ion-toolbar-background: var(--ion-color-step-150, var(--ion-background-color-step-150));
145-
--ion-toolbar-border-color: var(--ion-color-step-250, var(--ion-background-color-step-250));
146-
}
147141
}
148142

149143
@mixin dark-md-palette() {

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ $lightest-text-color: $text-color;
129129
--ion-item-background: #000000;
130130
--ion-card-background: #1c1c1d;
131131

132-
/// Only the item borders should increase in contrast
133-
/// Borders for elements like toolbars should remain the same
134-
--ion-item-border-color: var(--ion-background-color-step-400);
135132
--ion-text-color-step-50: #{mix($darkest-text-color, $lightest-text-color, 5%)};
136133
--ion-text-color-step-100: #{mix($darkest-text-color, $lightest-text-color, 10%)};
137134
--ion-text-color-step-150: #{mix($darkest-text-color, $lightest-text-color, 15%)};
@@ -171,16 +168,6 @@ $lightest-text-color: $text-color;
171168
--ion-background-color-step-900: #{mix($text-color, $background-color, 90%)};
172169
--ion-background-color-step-950: #{mix($text-color, $background-color, 95%)};
173170
}
174-
175-
// Modal
176-
// --------------------------------------------------
177-
178-
// TODO(FW-4005): Implement these to ionic modular
179-
& ion-modal {
180-
--ion-background-color: var(--ion-background-color-step-100);
181-
--ion-toolbar-background: var(--ion-background-color-step-150);
182-
--ion-toolbar-border-color: var(--ion-background-color-step-250);
183-
}
184171
}
185172

186173
@mixin high-contrast-dark-md-palette() {
@@ -197,10 +184,6 @@ $lightest-text-color: $text-color;
197184
--ion-toolbar-background: #1f1f1f;
198185
--ion-tab-bar-background: #1f1f1f;
199186
--ion-card-background: #1e1e1e;
200-
// TODO(FW-4005): Implement these to ionic modular
201-
/// Only the item borders should increase in contrast
202-
/// Borders for elements like toolbars should remain the same
203-
--ion-item-border-color: var(--ion-background-color-step-400);
204187
--ion-text-color-step-50: #{mix($darkest-text-color, $lightest-text-color, 5%)};
205188
--ion-text-color-step-100: #{mix($darkest-text-color, $lightest-text-color, 10%)};
206189
--ion-text-color-step-150: #{mix($darkest-text-color, $lightest-text-color, 15%)};

core/src/themes/ios/dark.tokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export const darkTheme: DarkTheme = {
2626
background: '#000000',
2727
},
2828
IonModal: {
29-
background: 'var(--ion-color-gray-100)',
30-
toolbarBackground: 'var(--ion-color-gray-150)',
29+
bg: 'var(--ion-color-gray-100)',
30+
toolbarBg: 'var(--ion-color-gray-150)',
3131
toolbarBorderColor: 'var(--ion-color-gray-250)',
3232
},
3333
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const defaultTheme: DefaultTheme = {
100100
},
101101
IonItem: {
102102
paragraphTextColor: 'var(--ion-color-text-450)',
103-
borderColor: 'var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-gray-250)))',
103+
borderColor: 'var(--ion-components-ion-item-border-color, var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-gray-250))))',
104104
},
105105
IonModal: {
106106
handleBg: 'var(--ion-color-gray-350)',

core/src/themes/ios/high-contrast-dark.tokens.ts

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

44
export const highContrastDarkTheme: HighContrastDarkTheme = {
55
...baseHighContrastDarkTheme,
6+
7+
components: {
8+
IonItem: {
9+
/// Only the item borders should increase in contrast
10+
/// Borders for elements like toolbars should remain the same
11+
borderColor: 'var(--ion-color-gray-400)',
12+
},
13+
IonModal: {
14+
bg: 'var(--ion-color-gray-100)',
15+
toolbarBg: 'var(--ion-color-gray-150)',
16+
toolbarBorderColor: 'var(--ion-color-gray-250)',
17+
},
18+
}
619
};

core/src/themes/ios/light.tokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const lightTheme: LightTheme = {
2929
},
3030
IonItem: {
3131
paragraphTextColor: '#a3a3a3',
32-
borderColor: 'var(--ion-item-border-color, var(--ion-border-color, #c8c7cc))',
32+
borderColor: 'var(--ion-components-ion-item-border-color, var(--ion-item-border-color, var(--ion-border-color, #c8c7cc)))',
3333
},
3434
IonModal: {
3535
handleBg: '#c0c0be',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const defaultTheme: DefaultTheme = {
100100
bg: 'var(--ion-color-gray-300)',
101101
},
102102
IonItem: {
103-
borderColor: 'var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-gray-150)))',
103+
borderColor: 'var(--ion-components-ion-item-border-color, var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-gray-150))))',
104104
},
105105
IonModal: {
106106
handleBg: 'var(--ion-color-gray-350)',

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

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

44
export const highContrastDarkTheme: HighContrastDarkTheme = {
55
...baseHighContrastDarkTheme,
6+
7+
components: {
8+
IonItem: {
9+
/// Only the item borders should increase in contrast
10+
/// Borders for elements like toolbars should remain the same
11+
borderColor: 'var(--ion-color-gray-400)',
12+
}
13+
}
614
};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const lightTheme: LightTheme = {
1818
timeBodyBg: '#edeef0',
1919
},
2020
IonItem: {
21-
borderColor: 'var(--ion-item-border-color, var(--ion-border-color, rgba(0, 0, 0, 0.13)))',
21+
borderColor: 'var(--ion-components-ion-item-border-color, var(--ion-item-border-color, var(--ion-border-color, rgba(0, 0, 0, 0.13))))',
2222
},
2323
IonModal: {
2424
handleBg: '#c0c0be',

0 commit comments

Comments
 (0)