File tree Expand file tree Collapse file tree 3 files changed +2
-17
lines changed Expand file tree Collapse file tree 3 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,6 @@ export const withContextWrapper = makeDecorator({
92
92
// Express only gets the express class
93
93
container . classList . toggle ( "spectrum--express" , isExpress && ! isRaw ) ;
94
94
95
- // Darkest is deprecated in Spectrum 2
96
- if ( isModern && color === "darkest" ) {
97
- /* eslint-disable no-console -- notify that darkest was deprecated in S2 */
98
- console . warn ( "The 'darkest' color is deprecated in Spectrum 2. Please use 'dark' instead." ) ;
99
- color = "dark" ;
100
- }
101
-
102
95
// Let the static color override the color if it's set
103
96
if ( ! isTestingWrapper && hasStaticElement && staticColorSettings [ staticKey ] ?. color ) {
104
97
color = staticColorSettings [ staticKey ] . color ;
@@ -110,7 +103,7 @@ export const withContextWrapper = makeDecorator({
110
103
color = "light" ;
111
104
}
112
105
113
- for ( let c of [ "light" , "dark" , "darkest" ] ) {
106
+ for ( let c of [ "light" , "dark" ] ) {
114
107
container . classList . toggle ( `spectrum--${ c } ` , c === color && ! isRaw ) ;
115
108
}
116
109
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ export default {
30
30
items : [
31
31
{ value : "light" , title : "Light" , right : "default" } ,
32
32
{ value : "dark" , title : "Dark" } ,
33
- { value : "darkest" , title : "Darkest" , right : "deprecated" } ,
34
33
] ,
35
34
dynamicTitle : true ,
36
35
} ,
Original file line number Diff line number Diff line change 71
71
" {projectRoot}/dist/css/global-vars.css" ,
72
72
" {projectRoot}/dist/css/light-vars.css" ,
73
73
" {projectRoot}/dist/css/dark-vars.css" ,
74
- " {projectRoot}/dist/css/darkest-vars.css" ,
75
74
" {projectRoot}/dist/css/medium-vars.css" ,
76
- " {projectRoot}/dist/css/large-vars.css" ,
77
- " {projectRoot}/dist/css/spectrum/global-vars.css" ,
78
- " {projectRoot}/dist/css/spectrum/medium-vars.css" ,
79
- " {projectRoot}/dist/css/spectrum/large-vars.css" ,
80
- " {projectRoot}/dist/css/express/global-vars.css" ,
81
- " {projectRoot}/dist/css/express/medium-vars.css" ,
82
- " {projectRoot}/dist/css/express/large-vars.css"
75
+ " {projectRoot}/dist/css/large-vars.css"
83
76
]
84
77
}
85
78
}
You can’t perform that action at this time.
0 commit comments