File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/components/CustomProperties Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ module.exports = {
99 postcssModules ( {
1010 generateScopedName : classConfig ,
1111 getJSON : ( cssFileName , json ) => {
12+ /* Ignore generate common polaris tokens style file */
13+ if ( cssFileName . indexOf ( '@shopify/polaris-tokens' ) !== - 1 ) {
14+ return ;
15+ }
16+
1217 let cssName = path . basename ( cssFileName , '.vue' ) ;
1318
1419 let projectPath = path . basename ( __dirname , './' ) ;
Original file line number Diff line number Diff line change 22component(
33 :is ="'style'" ,
44 data-polaris-custom-properties ="" ,
5- v-html ="styles "
5+ v-html ="rawStyles "
66)
77component(
88 v-bind ="$attrs" ,
@@ -14,7 +14,7 @@ component(
1414</template >
1515<script setup lang="ts">
1616import { computed } from ' vue' ;
17- import { styles } from ' polaris /polaris-react/src/components/CustomProperties/ styles' ;
17+ import rawStyles from ' @shopify /polaris-tokens/css/ styles.scss?inline ' ;
1818import { DEFAULT_COLOR_SCHEME , STYLE_SHEET_ID } from ' ./utils' ;
1919import type { CustomPropertiesProps } from ' ./utils' ;
2020
You can’t perform that action at this time.
0 commit comments