Skip to content

Commit dd86ec7

Browse files
committed
feat(pie-modal): DSW-2172 updates scss value for ::backbrop with css var
1 parent d2c09bf commit dd86ec7

File tree

3 files changed

+1296
-1185
lines changed

3 files changed

+1296
-1185
lines changed

packages/components/pie-modal/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"license": "Apache-2.0",
3737
"devDependencies": {
3838
"@custom-elements-manifest/analyzer": "0.9.0",
39-
"@justeat/pie-design-tokens": "6.5.0",
4039
"@justeattakeaway/pie-components-config": "0.18.0",
4140
"@justeattakeaway/pie-css": "0.12.1",
4241
"@justeattakeaway/pie-wrapper-react": "0.14.1",

packages/components/pie-modal/src/modal.scss

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
@use '@justeattakeaway/pie-css/scss' as p;
21
@use '@justeattakeaway/pie-css/scss/settings' as *;
3-
@use '@justeat/pie-design-tokens/dist/jet.scss' as dt;
42
@use 'dialog-polyfill/dist/dialog-polyfill.css';
53

64
.c-modal {
@@ -22,7 +20,6 @@
2220

2321
// We need to override the icon sizes at different screen sizes regardless of size prop passed in
2422
pie-icon-button {
25-
2623
@include media('<md') {
2724
--btn-dimension: 40px;
2825
}
@@ -117,10 +114,8 @@
117114
}
118115
}
119116

120-
// We need to pull in the token directly here because the
121-
// pseudo element `::backdrop` doesn't seem to pick up custom css properties.
122117
&::backdrop {
123-
background: #{dt.$color-overlay};
118+
background: var(--dt-color-overlay);
124119
}
125120

126121
& .c-modal-footer {

0 commit comments

Comments
 (0)