-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
BP3 Checkbox SVG not rendering #2821
Comments
@Benjamsk I have downgraded to core 3.0.1 as you highlighted and the issue is not present in that version. Thanks for pointing this out. |
@strickland84 @Benjamsk compiling the SCSS code itself is non trivial and not officially supported. you must use the exact same setup that we do: https://github.com/palantir/blueprint/blob/develop/packages/core/package.json#L22 specifically:
sorry this isn't documented anywhere--it should be. |
@giladgray thank you for explaining that, I understand now. I will look at modifying our setup. |
FYI, as a hack, I have included the following in my CSS:
|
@giladgray The bigger issue with reproducing blueprint's scss compilation step is that the icons do not seem to be bundled with @blueprintjs/core or @blueprintjs/icons. Is there a package that contains these, or would we be best off cloning the repo and copying these icons somewhere accessible? Thanks |
Blueprintjs has a very particular sass setup, and it needs to be recreated in order to fully work with their build. Since we are modifying the sass variables, we are not able to replicate it, and therefore the inline svgs are not being displayed. This commit manually adds the checkmark inline ticks to the main sass file. It was lifted from this comment in the Blueprintjs issues tracker palantir/blueprint#2821 (comment) Closes: #151
Blueprintjs has a very particular sass setup, and it needs to be recreated in order to fully work with their build. Since we are modifying the sass variables, we are not able to replicate it, and therefore the inline svgs are not being displayed. This commit manually adds the checkmark inline ticks to the main sass file. It was lifted from this comment in the Blueprintjs issues tracker palantir/blueprint#2821 (comment) Closes: #151
Here's the one for indeterminate: |
Environment
Steps to reproduce
I am importing SCSS directly into my project to override variables.
Importing SCSS as below:
Actual behavior
Inspecting the
::before
element in Chrome, the following is provided:With the warning message:
Invalid property value
Expected behavior
SVG icon renders correctly in Checkbox. This was working as intended in core version 3.0.1.
Possible solution
I believe this could be related to #2709 but I am not confident that I am doing everything correctly.
Could I be missing something in my webpack setup to import the SVG icons correctly? I can see that they are included in the compiled package though.
Any ideas would be much appreciated. Thanks for your work on this great library.
The text was updated successfully, but these errors were encountered: