Skip to content

Commit 07403d0

Browse files
authored
Merge pull request #5211 from salesforce-ux/feat/wcag-dist
Chore(npm): add default & root scope
2 parents 40d6c4d + 4c64492 commit 07403d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

formats/custom-props.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const theo = require('theo');
22

33
const SLDS = 'slds';
4-
const SCOPED_NAMESPACE = 'slds-wcag';
4+
const SCOPED_NAMESPACE = process.env.WCAG_MODE ? ':root' : '.slds-wcag';
55

66
theo.registerFormat(
77
'custom-props.scss',
8-
`.${SCOPED_NAMESPACE} {
8+
`${SCOPED_NAMESPACE} {
99
{{#each props as |prop|}}
1010
{{#if prop.comment}}/* {{{prop.comment}}} */{{/if}}
1111
--${SLDS}-{{#eq prop.scope "global"}}g-{{/eq}}{{#eq prop.scope "shared"}}s-{{/eq}}{{kebabcase prop.name}}: {{#eq prop.type "string"}}"{{/eq}}{{{prop.value}}}{{#eq prop.type "string"}}"{{/eq}};

0 commit comments

Comments
 (0)