Skip to content

Commit 23964bc

Browse files
authored
Merge branch '244-summer-23' into fix/244-icons-version
2 parents c83fc77 + 07403d0 commit 23964bc

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)