Skip to content

Commit bdf535b

Browse files
authored
feat(page)!: migrate to spectrum-tokens (#2150)
BREAKING CHANGE: migrates the Page component to use `@adobe/spectrum-tokens`
1 parent 6e61b92 commit bdf535b

File tree

5 files changed

+25
-10
lines changed

5 files changed

+25
-10
lines changed

components/page/gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require("@spectrum-css/component-builder");
1+
module.exports = require("@spectrum-css/component-builder-simple");

components/page/index.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
99
OF ANY KIND, either express or implied. See the License for the specific language
1010
governing permissions and limitations under the License.
1111
*/
12+
13+
& {
14+
background-color: var(--spectrum-gray-100);
15+
16+
/* Prevent tap highlights */
17+
-webkit-tap-highlight-color: var(--spectrum-transparent-black-100);
18+
}

components/page/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
"build": "gulp"
1919
},
2020
"dependencies": {
21-
"@spectrum-css/vars": "^9.0.8"
21+
"@spectrum-css/tokens": "^11.3.3"
2222
},
2323
"devDependencies": {
24-
"@spectrum-css/component-builder": "^4.0.14",
25-
"@spectrum-css/vars": "*",
24+
"@spectrum-css/component-builder-simple": "^2.0.17",
25+
"@spectrum-css/tokens": "^11.3.3",
2626
"gulp": "^4.0.0"
2727
},
2828
"publishConfig": {

components/page/skin.css renamed to components/page/themes/express.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,4 @@ OF ANY KIND, either express or implied. See the License for the specific languag
1010
governing permissions and limitations under the License.
1111
*/
1212

13-
& {
14-
background-color: var(--spectrum-alias-background-color-default);
15-
16-
/* Prevent tap highlights */
17-
-webkit-tap-highlight-color: rgba(0,0,0,0);
18-
}
13+
@container (--system: express) {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*!
2+
Copyright 2023 Adobe. All rights reserved.
3+
This file is licensed to you under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License. You may obtain a copy
5+
of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
7+
Unless required by applicable law or agreed to in writing, software distributed under
8+
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9+
OF ANY KIND, either express or implied. See the License for the specific language
10+
governing permissions and limitations under the License.
11+
*/
12+
13+
@container (--system: spectrum) {}

0 commit comments

Comments
 (0)