We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c83fc77 + 07403d0 commit 23964bcCopy full SHA for 23964bc
formats/custom-props.js
@@ -1,11 +1,11 @@
1
const theo = require('theo');
2
3
const SLDS = 'slds';
4
-const SCOPED_NAMESPACE = 'slds-wcag';
+const SCOPED_NAMESPACE = process.env.WCAG_MODE ? ':root' : '.slds-wcag';
5
6
theo.registerFormat(
7
'custom-props.scss',
8
- `.${SCOPED_NAMESPACE} {
+ `${SCOPED_NAMESPACE} {
9
{{#each props as |prop|}}
10
{{#if prop.comment}}/* {{{prop.comment}}} */{{/if}}
11
--${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