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

divide in scss is deprecated #1573

Closed
BryanCrotaz opened this issue Jul 4, 2021 · 6 comments
Closed

divide in scss is deprecated #1573

BryanCrotaz opened this issue Jul 4, 2021 · 6 comments

Comments

@BryanCrotaz
Copy link

BryanCrotaz commented Jul 4, 2021

DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.

Recommendation: math.div($spacer, 2)

More info and automated migrator: https://sass-lang.com/d/slash-div

718 │ $navbar-padding-y:                  $spacer / 2 !default;

    /var/folders/24/9c9x7j316gbd3z5wg84fghqc0000gn/T/broccoli-58534Cx2GVXZ0IhRs/out-813-broccoli_merge_trees_full_application/ember-bootstrap/_variables.scss 718:37  @import
    /var/folders/24/9c9x7j316gbd3z5wg84fghqc0000gn/T/broccoli-58534Cx2GVXZ0IhRs/out-813-broccoli_merge_trees_full_application/ember-bootstrap/bootstrap.scss 9:9      @import
    /var/folders/24/9c9x7j316gbd3z5wg84fghqc0000gn/T/broccoli-58534Cx2GVXZ0IhRs/out-813-broccoli_merge_trees_full_application/app/styles/app.scss 72:9                root stylesheet

Several instances of this in the codebase. I'll work on a PR.

@simonihmig
Copy link
Contributor

This addon does not ship any Sass, all of it comes from original Bootstrap. v5.0.2 should have this already fixed, and there is a PR for v4.

Keeping this open for visibility, although it cannot be fixed here.

@BryanCrotaz
Copy link
Author

so should this library be importing v5.0.2?

@simonihmig
Copy link
Contributor

so should this library be importing v5.0.2?

It's for the app to decide this, as switching to v5 is a breaking change, and will affect a lot (e.g. different Bootstrap classes for things not covered by ember-bootstrap's components).

v5 support is not complete yet, see #1494. But you can opt into it, e.g. by running ember generate ember-bootstrap --bootstrap-version=5. See also https://www.ember-bootstrap.com/getting-started/setup (not yet updated for v5).

@oliverlj
Copy link
Contributor

There is an issue on bootstrap project twbs/bootstrap#34353

@oliverlj
Copy link
Contributor

oliverlj commented Nov 5, 2021

should be fixed in 4.6.1 version of bs

@jelhan
Copy link
Contributor

jelhan commented Nov 17, 2021

@oliverlj Thanks for the heads up that it is fixed in Bootstrap.

Closing this as it is not related to Ember Bootstrap but to Bootstrap itself. Also it is fixed in latest Bootstrap release.

@jelhan jelhan closed this as completed Nov 17, 2021
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

4 participants