Skip to content
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

Merged
merged 1 commit into from
Aug 7, 2019

Conversation

dpordomingo
Copy link
Contributor

@dpordomingo dpordomingo commented Jul 29, 2019

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:

@dpordomingo dpordomingo added the enhancement New feature or request label Jul 29, 2019
@dpordomingo dpordomingo requested review from ricardobaeta and a team July 29, 2019 18:48
@@ -1,134 +1,10 @@
/**
Copy link
Contributor

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?

Copy link
Contributor Author

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:

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dpordomingo
Copy link
Contributor Author

@ricardobaeta feel free to merge on your own, and solve the mentioned issues in separate PRs.
An alternative is that they're not real problems because I only detected them as "differences between old and new"

Copy link
Contributor

@ricardobaeta ricardobaeta left a 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>
@dpordomingo
Copy link
Contributor Author

@ricardobaeta your suggestion was addressed and merged into master, many thanks for your review

@dpordomingo
Copy link
Contributor Author

I'd consider the contribution to upstream once I find the way to solve the caveats described in the causing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants