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

The bg-gradient-variant mixin has been deprecated as of v4.5.0. It will be removed entirely in v5. #327

Closed
hube12 opened this issue Aug 18, 2020 · 0 comments · Fixed by #328

Comments

@hube12
Copy link
Contributor

hube12 commented Aug 18, 2020

Hi,
Since i updated my modules i sadly have this error that spam my console:

WARNING: The `bg-gradient-variant` mixin has been deprecated as of v4.5.0. It will be removed entirely in v5.
         on line 8:5 of themes/docsy/assets/vendor/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 22:12 of themes/docsy/assets/vendor/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-gradient-variant`
         from line 37:18 of themes/docsy/assets/scss/_boxes.scss, in mixin `box-variant`
         from line 126:14 of themes/docsy/assets/scss/_boxes.scss
         from line 14:9 of stdin

Would it be possible to switch to the new format which is :
The official @mixin for bg-variant and bg-gradient-variant in bootstrap 4.5.0 is now @mixin bg-variant($parent, $color, $ignore-warning: false) and @mixin bg-gradient-variant($parent, $color, $ignore-warning: false).

Also in 5.0 bootstrap is moving away from it The bg-gradient-variant() mixin is removed since the .bg-gradient class can now be used to add gradients to elements instead of the .bg-gradient-* classes. see https://github.com/twbs/bootstrap/blob/main/site/content/docs/5.0/migration.md

related deprecated pr: twbs/bootstrap#30594

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 a pull request may close this issue.

1 participant