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

migrate to dart-sass #5215

Closed

Conversation

pgoldberg
Copy link
Contributor

@pgoldberg pgoldberg commented Apr 1, 2022

Will write description soon!

Fixes #0000

Checklist

  • Includes tests
  • Update documentation

Changes proposed in this pull request:

Reviewers should focus on:

Screenshot

@palantirtech
Copy link
Member

Thanks for your interest in palantir/blueprint, @pgoldberg! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@pgoldberg pgoldberg force-pushed the pgoldberg/migrateToDartSass branch from 61f5c5f to 9f8f0d6 Compare April 1, 2022 08:32
@@ -17,11 +17,11 @@
// keep a trail of hovered items as submenus are opened
/* stylelint-disable scss/at-extend-no-missing-placeholder */
&:not([class*="#{$ns}-intent-"]) {
@extend .#{$ns}-menu-item:hover;
@extend .#{$ns}-menu-item, :hover;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://sass-lang.com/documentation/at-rules/extend#disallowed-selectors

If .message.info could be extended, the definition of @extend says that elements matching the extender would be styled as though they matched .message.info. That’s just the same as matching both .message and .info, so there wouldn’t be any benefit in writing that instead of @extend .message, .info.

@pgoldberg pgoldberg force-pushed the pgoldberg/migrateToDartSass branch from 9f8f0d6 to c3dcfdd Compare April 1, 2022 08:35
@@ -0,0 +1,40 @@
import fs from "fs-extra";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

see https://github.com/palantir/blueprint/pull/5215/files#diff-8c508100032d0fe222dc9679ae03f037d137a2323c18decd3775ccea41dddf2eR14

the dart-sass CLI doesn't support custom functions or importers, but the JS API does, so delegate to node

Very frustrating, but basically the only way we can migrate and keep sass-inline-svg and the importer (which allows us to resolve tilde imports outside of webpack), we need to delegate to node

@pgoldberg pgoldberg force-pushed the pgoldberg/migrateToDartSass branch 2 times, most recently from 37b9b69 to 7d610b7 Compare April 1, 2022 08:41
@pgoldberg pgoldberg force-pushed the pgoldberg/migrateToDartSass branch from d5b2438 to 98b6b51 Compare April 1, 2022 09:40
@pgoldberg
Copy link
Contributor Author

merged in #5216

@pgoldberg pgoldberg closed this Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants