-
Notifications
You must be signed in to change notification settings - Fork 15
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
Override global variables with our branding #226
Conversation
@@ -1,134 +1,10 @@ | |||
/** |
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.
Why some of the variables defined here have not been moved?
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.
@se7entyse7en do you mean: "moved to ./variables-override.less
"?
If so, I only moved to ./variables-override.less
, those that:
- do not exist in
./cosmo/variables.less
- do override a variable from
./cosmo/variables.less
Why? because since we're already importing ./cosmo/variables.less
, it's not needed to override it with the very same value → it would not be clear which ones are kept equal, and which ones are overridden.
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.
Thanks!
@ricardobaeta feel free to merge on your own, and solve the mentioned issues in separate PRs. |
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.
This is so awesome @dpordomingo :)
Now we can have clean, structured and adaptive code, easily understandable and extendable by the community. Having in mind a possible contribution to upstream to enhance Superset's branding capabilities I would only change the comment on .../cosmo/variables.less
- line 889 - from // Load source{d} variables
to // Load Custom Branding variables
.
If you agree, please be so kind as to address this last change and merge ✨Thank you!
Signed-off-by: David Pordomingo <David.Pordomingo.F@gmail.com>
@ricardobaeta your suggestion was addressed and merged into |
I'd consider the contribution to upstream once I find the way to solve the caveats described in the causing issue. |
required by #132
It solves the problem described by #132 (comment)
If it is merged, we will be able to override and use Apache Superset variables, as seen in this example.
I only detected the following three small issues, that could be solved in a separate PR: