@@ -104,7 +104,16 @@ export const globalTypes = {
104
104
defaultValue : 'light' ,
105
105
toolbar : {
106
106
icon : 'circlehollow' ,
107
- items : [ 'light' , 'light_protanopia' , 'dark' , 'dark_dimmed' , 'dark_high_contrast' , 'dark_protanopia' , 'all' ] ,
107
+ items : [
108
+ 'light' ,
109
+ 'light_colorblind' ,
110
+ 'light_high_contrast' ,
111
+ 'dark' ,
112
+ 'dark_dimmed' ,
113
+ 'dark_high_contrast' ,
114
+ 'dark_colorblind' ,
115
+ 'all'
116
+ ] ,
108
117
showName : true
109
118
}
110
119
}
@@ -119,7 +128,11 @@ export const decorators = [
119
128
< Story { ...context } />
120
129
</ div >
121
130
122
- < div data-color-mode = "light" data-light-theme = "light_protanopia" className = "story-wrap" id = "story" >
131
+ < div data-color-mode = "light" data-light-theme = "light_colorblind" className = "story-wrap" id = "story" >
132
+ < Story { ...context } />
133
+ </ div >
134
+
135
+ < div data-color-mode = "light" data-light-theme = "light_high_contrast" className = "story-wrap" id = "story" >
123
136
< Story { ...context } />
124
137
</ div >
125
138
@@ -135,7 +148,7 @@ export const decorators = [
135
148
< Story { ...context } />
136
149
</ div >
137
150
138
- < div data-color-mode = "dark" data-dark-theme = "dark_protanopia " className = "story-wrap" id = "story" >
151
+ < div data-color-mode = "dark" data-dark-theme = "dark_colorblind " className = "story-wrap" id = "story" >
139
152
< Story { ...context } />
140
153
</ div >
141
154
</ div >
@@ -150,9 +163,17 @@ export const decorators = [
150
163
)
151
164
}
152
165
153
- if ( context . globals . theme === 'light_protanopia' ) {
166
+ if ( context . globals . theme === 'light_colorblind' ) {
167
+ return (
168
+ < div data-color-mode = "light" data-light-theme = "light_colorblind" className = "story-wrap" id = "story" >
169
+ < Story { ...context } />
170
+ </ div >
171
+ )
172
+ }
173
+
174
+ if ( context . globals . theme === 'light_high_contrast' ) {
154
175
return (
155
- < div data-color-mode = "light" data-light-theme = "light_protanopia " className = "story-wrap" id = "story" >
176
+ < div data-color-mode = "light" data-light-theme = "light_high_contrast " className = "story-wrap" id = "story" >
156
177
< Story { ...context } />
157
178
</ div >
158
179
)
@@ -182,9 +203,9 @@ export const decorators = [
182
203
)
183
204
}
184
205
185
- if ( context . globals . theme === 'dark_protanopia ' ) {
206
+ if ( context . globals . theme === 'dark_colorblind ' ) {
186
207
return (
187
- < div data-color-mode = "dark" data-dark-theme = "dark_protanopia " className = "story-wrap" id = "story" >
208
+ < div data-color-mode = "dark" data-dark-theme = "dark_colorblind " className = "story-wrap" id = "story" >
188
209
< Story { ...context } />
189
210
</ div >
190
211
)
0 commit comments