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

Deprecation Warnings in Sass #354

Open
MartinHinz opened this issue Dec 13, 2024 · 1 comment
Open

Deprecation Warnings in Sass #354

MartinHinz opened this issue Dec 13, 2024 · 1 comment

Comments

@MartinHinz
Copy link
Collaborator

When running the current Sass codebase, the following deprecation warnings are displayed:

1. Nested Rules and Declarations

DEPRECATION WARNING: Sass's behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
version. To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in `& {}`

Cause: Sass will soon change how it handles declarations following nested rules to align with CSS standards.
Suggested Fix:

  • Move declarations to precede the nested rule if you want to maintain the current behavior.
  • Alternatively, wrap the declaration in & {} to opt into the new behavior.

2. Deprecated for colors, eg. green() Function

DEPRECATION WARNING: green() is deprecated. Suggestion:
color.channel($color, "green", $space: rgb)

Cause: The green() function is deprecated and will be removed in future versions of Sass.
Suggested Fix: Replace eg. green() with color.channel($color, "green", $space: rgb) to achieve the same functionality using the new API.

@joeroe
Copy link
Contributor

joeroe commented Dec 13, 2024

We don't really have any sass of our own. Just plain CSS in .scss files. I would guess these warnings relate to Bootstrap's sass and will therefore disappear in some future update.

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

No branches or pull requests

2 participants