Skip to content

Commit 96c1c77

Browse files
authored
fix(dark-mode): demos use correct stepped color tokens (#3495)
1 parent 451ff46 commit 96c1c77

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

static/usage/v8/theming/always-dark-mode/demo.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@
6161
<style>
6262
/* This sets a different item border color for the default theme on ios and md */
6363
:root {
64-
--ion-item-border-color: var(--ion-color-step-200);
64+
--ion-item-border-color: var(--ion-background-color-step-200);
6565
}
6666

6767
/* This sets a different background and item background for the default theme on ios */
6868
:root.ios {
69-
--ion-background-color: var(--ion-color-step-50);
69+
--ion-background-color: var(--ion-background-color-step-50);
7070
--ion-toolbar-background: var(--ion-background-color);
7171
--ion-item-background: #1c1c1d;
7272
}
7373

7474
/* This sets a different background and item background for the default theme on md */
7575
:root.md {
76-
--ion-background-color: var(--ion-color-step-100);
76+
--ion-background-color: var(--ion-background-color-step-100);
7777
--ion-toolbar-background: var(--ion-background-color);
7878
--ion-item-background: #1c1c1d;
7979
}

static/usage/v8/theming/class-dark-mode/demo.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,19 @@
123123

124124
/* This sets a different item border color for the default theme on ios and md */
125125
:root {
126-
--ion-item-border-color: var(--ion-color-step-200);
126+
--ion-item-border-color: var(--ion-background-color-step-200);
127127
}
128128

129129
/* This sets a different background and item background for the default theme on ios */
130130
:root.ios {
131-
--ion-background-color: var(--ion-color-step-50, #f2f2f6);
131+
--ion-background-color: var(--ion-background-color-step-50, #f2f2f6);
132132
--ion-toolbar-background: var(--ion-background-color);
133133
--ion-item-background: #fff;
134134
}
135135

136136
/* This sets a different background and item background for the default theme on md */
137137
:root.md {
138-
--ion-background-color: var(--ion-color-step-100, #f9f9f9);
138+
--ion-background-color: var(--ion-background-color-step-100, #f9f9f9);
139139
--ion-toolbar-background: var(--ion-background-color);
140140
--ion-item-background: #fff;
141141
}

static/usage/v8/theming/system-dark-mode/demo.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,19 @@
6666

6767
/* This sets a different item border color for the default theme on ios and md */
6868
:root {
69-
--ion-item-border-color: var(--ion-color-step-200);
69+
--ion-item-border-color: var(--ion-background-color-step-200);
7070
}
7171

7272
/* This sets a different background and item background for the default theme on ios */
7373
:root.ios {
74-
--ion-background-color: var(--ion-color-step-50, #f2f2f6);
74+
--ion-background-color: var(--ion-background-color-step-50, #f2f2f6);
7575
--ion-toolbar-background: var(--ion-background-color);
7676
--ion-item-background: #fff;
7777
}
7878

7979
/* This sets a different background and item background for the default theme on md */
8080
:root.md {
81-
--ion-background-color: var(--ion-color-step-100, #f9f9f9);
81+
--ion-background-color: var(--ion-background-color-step-100, #f9f9f9);
8282
--ion-toolbar-background: var(--ion-background-color);
8383
--ion-item-background: #fff;
8484
}

0 commit comments

Comments
 (0)