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({
9595 // Express only gets the express class
9696 container . classList . toggle ( "spectrum--express" , isExpress && ! isRaw ) ;
9797
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-
10598 // Let the static color override the color if it's set
10699 if ( ! isTestingWrapper && hasStaticElement && staticColorSettings [ staticKey ] ?. color ) {
107100 color = staticColorSettings [ staticKey ] . color ;
@@ -113,7 +106,7 @@ export const withContextWrapper = makeDecorator({
113106 color = "light" ;
114107 }
115108
116- for ( let c of [ "light" , "dark" , "darkest" ] ) {
109+ for ( let c of [ "light" , "dark" ] ) {
117110 container . classList . toggle ( `spectrum--${ c } ` , c === color && ! isRaw ) ;
118111 }
119112
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 5757 " {projectRoot}/dist/css/global-vars.css" ,
5858 " {projectRoot}/dist/css/light-vars.css" ,
5959 " {projectRoot}/dist/css/dark-vars.css" ,
60- " {projectRoot}/dist/css/darkest-vars.css" ,
6160 " {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"
6962 ]
7063 }
7164 }
You can’t perform that action at this time.
0 commit comments