fix(multiple): resolve sass if function deprecation warnings#32674
Merged
crisbeto merged 1 commit intoangular:mainfrom Jan 20, 2026
Merged
fix(multiple): resolve sass if function deprecation warnings#32674crisbeto merged 1 commit intoangular:mainfrom
crisbeto merged 1 commit intoangular:mainfrom
Conversation
[Sass has deprecated the `if` function](https://sass-lang.com/documentation/breaking-changes/if-function) in order to support the native CSS `if()`. These changes update all of our usages so users don't get deprecation warnings. Note that I decided to replace it with `@if`/`@else`, instead of the new syntax, because the new syntax is: 1. Harder to follow, in my opinion. 2. Likely going to break users that aren't on the absolute latest version of Sass.
5027dab to
e0c8af2
Compare
devversion
approved these changes
Jan 19, 2026
Member
Author
crisbeto
added a commit
that referenced
this pull request
Jan 20, 2026
[Sass has deprecated the `if` function](https://sass-lang.com/documentation/breaking-changes/if-function) in order to support the native CSS `if()`. These changes update all of our usages so users don't get deprecation warnings. Note that I decided to replace it with `@if`/`@else`, instead of the new syntax, because the new syntax is: 1. Harder to follow, in my opinion. 2. Likely going to break users that aren't on the absolute latest version of Sass. (cherry picked from commit f3357c1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sass has deprecated the
iffunction in order to support the native CSSif(). These changes update all of our usages so users don't get deprecation warnings.Note that I decided to replace it with
@if/@else, instead of the new syntax, because the new syntax is: