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 @@ -95,13 +95,6 @@ export const withContextWrapper = makeDecorator({
95
95
// Express only gets the express class
96
96
container . classList . toggle ( "spectrum--express" , isExpress && ! isRaw ) ;
97
97
98
- // Darkest is deprecated in Spectrum 2
99
- if ( isModern && color === "darkest" ) {
100
- /* eslint-disable no-console -- notify that darkest was deprecated in S2 */
101
- console . warn ( "The 'darkest' color is deprecated in Spectrum 2. Please use 'dark' instead." ) ;
102
- color = "dark" ;
103
- }
104
-
105
98
// Let the static color override the color if it's set
106
99
if ( ! isTestingWrapper && hasStaticElement && staticColorSettings [ staticKey ] ?. color ) {
107
100
color = staticColorSettings [ staticKey ] . color ;
@@ -113,7 +106,7 @@ export const withContextWrapper = makeDecorator({
113
106
color = "light" ;
114
107
}
115
108
116
- for ( let c of [ "light" , "dark" , "darkest" ] ) {
109
+ for ( let c of [ "light" , "dark" ] ) {
117
110
container . classList . toggle ( `spectrum--${ c } ` , c === color && ! isRaw ) ;
118
111
}
119
112
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 57
57
" {projectRoot}/dist/css/global-vars.css" ,
58
58
" {projectRoot}/dist/css/light-vars.css" ,
59
59
" {projectRoot}/dist/css/dark-vars.css" ,
60
- " {projectRoot}/dist/css/darkest-vars.css" ,
61
60
" {projectRoot}/dist/css/medium-vars.css" ,
62
- " {projectRoot}/dist/css/large-vars.css" ,
63
- " {projectRoot}/dist/css/spectrum/global-vars.css" ,
64
- " {projectRoot}/dist/css/spectrum/medium-vars.css" ,
65
- " {projectRoot}/dist/css/spectrum/large-vars.css" ,
66
- " {projectRoot}/dist/css/express/global-vars.css" ,
67
- " {projectRoot}/dist/css/express/medium-vars.css" ,
68
- " {projectRoot}/dist/css/express/large-vars.css"
61
+ " {projectRoot}/dist/css/large-vars.css"
69
62
]
70
63
}
71
64
}
You can’t perform that action at this time.
0 commit comments