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

chore: handle sass warnings #12742

Merged
merged 4 commits into from
Jan 2, 2023
Merged

Conversation

miketheman
Copy link
Member

Follows #12728

Commit descriptions contain richer context.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Dart Sass has deprecated inline division.
Refs: https://sass-lang.com/documentation/breaking-changes/slash-div

We vendor the `bourbon` and `neat` sass libraries, but have
no clear path for upgrading them at this time.
`neat` is deprecated, and will not receive any further updates, so I
don't feel too bad about modifying a library right now.

We should evaluate what functionality we use from the libraries and
determine potential replacements, but until that time we should not emit
deprecation warnings during compilation for this issue.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
We reuse the concept of "half of a spacing unit" frequently.

We can then use the `math.div()` function to return the desired value, as
Dart Sass 2.0.0 will disallow usage of `/` outside `calc` or `math.div`,
and prevents the deprecation warning.

Refs: https://sass-lang.com/d/slash-div

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Similar to `$half-spacing-unit`, extract to a variable and refactor to
use `math.div()`.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman requested a review from a team as a code owner January 2, 2023 17:31
@miketheman miketheman added CSS/SCSS requires change to CSS/SCSS files developer experience Anything that improves the experience for Warehouse devs labels Jan 2, 2023
@miketheman miketheman mentioned this pull request Jan 2, 2023
13 tasks
@di di merged commit a0f3817 into pypi:main Jan 2, 2023
@miketheman miketheman deleted the miketheman/handle-sass-warnings branch January 2, 2023 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS/SCSS requires change to CSS/SCSS files developer experience Anything that improves the experience for Warehouse devs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants