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({
9292 // Express only gets the express class
9393 container . classList . toggle ( "spectrum--express" , isExpress && ! isRaw ) ;
9494
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-
10295 // Let the static color override the color if it's set
10396 if ( ! isTestingWrapper && hasStaticElement && staticColorSettings [ staticKey ] ?. color ) {
10497 color = staticColorSettings [ staticKey ] . color ;
@@ -110,7 +103,7 @@ export const withContextWrapper = makeDecorator({
110103 color = "light" ;
111104 }
112105
113- for ( let c of [ "light" , "dark" , "darkest" ] ) {
106+ for ( let c of [ "light" , "dark" ] ) {
114107 container . classList . toggle ( `spectrum--${ c } ` , c === color && ! isRaw ) ;
115108 }
116109
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ export default {
3030 items : [
3131 { value : "light" , title : "Light" , right : "default" } ,
3232 { value : "dark" , title : "Dark" } ,
33- { value : "darkest" , title : "Darkest" , right : "deprecated" } ,
3433 ] ,
3534 dynamicTitle : true ,
3635 } ,
Original file line number Diff line number Diff line change 7171 " {projectRoot}/dist/css/global-vars.css" ,
7272 " {projectRoot}/dist/css/light-vars.css" ,
7373 " {projectRoot}/dist/css/dark-vars.css" ,
74- " {projectRoot}/dist/css/darkest-vars.css" ,
7574 " {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"
8376 ]
8477 }
8578 }
You can’t perform that action at this time.
0 commit comments