Remove deprecation warning from reset-display
#456
Conversation
whmii
commented
Jul 7, 2016
- Fixing display deprecation warning not intuitive or helpful #338
reset-display
reset-display
Shouldn’t we just be able to remove lines I’m a bit confused, but I don’t think that |
The |
@whmii Any word on my comments above? Am I mistaken on how that works? |
@tysongach The problem is the global variable $container-is-display-table. The row() mixin changes this variable (line 39). The reset-display() also changes this variable (line 13). When using row, you have to manually call reset-display() in order to reset the global variable. Before the most recent commits, they were trying to push the display-context() mixin which would have done this for you. The problem they had was trying to support the 'deprecated' method as well (keeping the globals in row and not using is-display-table()). |
@whmii I am a little confused about what is the correct usage of Example 1@include row(table) Example 2@include display-context(table) {
@include row();
} Example 1 throws a deprecation warning. Example 2 appears to have no impact on the |
Deprecation warnings don't affect 1.x - they are there to let you know which features will not be present in the next major release |
@kgcreative Understood. From my experience, library deprecations warnings can be resolved prior to upgrading. The idea being that if you "take care of" all the warnings, upgrading to the major release is a straight-forward process. The deprecation warnings are a "checklist" to get ready for the upgrade. It would appear that it is impossible to resolve Neat's "deprecation warnings" without upgrading to "the next major release", which sort of defeats the purpose of including them in my compilation logs for |