-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Bootstrap/Ant style collisions #3258
Comments
Seems importing |
@ranbena the problem with importing the redash/client/app/assets/less/redash/ant.less Lines 12 to 42 in 22f835d
No? |
I agree with @arikfr on this, the issue still exists, although we can avoid it for some components that don't require variable override. |
I tested migrating all I think what we can try do to at least give it some time is somehow isolate Ant less processing from the rest. I did a few tests with // webpack.config.js (line 29)
entry: {
app: [
"./client/app/index.js",
"./client/app/assets/less/main.less",
"./client/app/assets/less/redash/ant.less"
],
server: ["./client/app/assets/less/server.less"]
} With that we can create a new tree without including bootstrap on those paths. WDYT? 😄 |
@gabrieldutra if this works, it seems like the best solution indeed. |
@ranbena what do you think? I'm not very experienced with Less (or Redash styling files), but I can try to reorganize those files. My concerns are all related to what we will see after this division. Till now we've been coding based on a mix of styles and once we properly divide it some page/component styles could break. A very good look on pages and components (mainly the ones which use Ant) will be important. |
Be assured @arikfr and I will take a close look at all pages and components prior to approval 🕵🏻♂️ |
Can we close this now? |
Redash is in the midst of migrating from Bootstrap to Ant, and from Angular to React.
Loading both component libraries causes collisions, since both use some identical
less
variable names, resulting mostly in wrong colors being displayed.Bootstrap cannot be fully swapped until React migration is complete (Ant doesn't offer Angular components) so a middle ground must be found.
Currently defining specific css overrides, which problematic in many ways. Need better solution.
The text was updated successfully, but these errors were encountered: