-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a default value inside the custom property statements #38
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can improve this for when the variable is used multiple times. I think it would also be cool to add a config option that disables the inlining. Some people may want to expose those variables for consumers of the components. the default can be to inline. The option could be called inlineRootThemeVariables
with the default being true
|
||
.mint { | ||
--color: teal | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
src/modern/index.ts
Outdated
const inlineRootThemeVariables = | ||
typeof options.inlineRootThemeVariables === 'undefined' | ||
? true | ||
: options.inlineRootThemeVariables; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const inlineRootThemeVariables = | |
typeof options.inlineRootThemeVariables === 'undefined' | |
? true | |
: options.inlineRootThemeVariables; | |
const inlineRootThemeVariables = options.inlineRootThemeVariables ?? options.inlineRootThemeVariables; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just 1 thing then you can merge this!
🚀 PR was released in v2.2.2 🚀 |
What Changed
Why
Todo:
yarn all-contributors add [name] [type]
) see https://github.com/all-contributors/all-contributors/blob/master/docs/cli/usage.md