You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disable auto-fix for "scales/font-weights" rule. However the similar feature would be useful for other rules from this lib as well. The main reason is that auto-fix makes potentially breaking changes to the app functionality. E.g. when next rule is defined:
'scales/font-weights': [100, 300, 400, 500, 700]
And auto-fix is applied, then it's not always safe to replace font-weight to closest value from the list. I would prefer to fix it manually, because it either may require updating other CSS as well to make it work correctly. Or it may require updating list of allowed values.
What solution would you like to see?
Add some option like in the example below to all rules which make potentially breaking changes, e.g.:
'scales/font-weights': { [100, 300, 400, 500, 700], {
disableAutoFix: true,
}]
The text was updated successfully, but these errors were encountered:
jeddy3
changed the title
Possibility to optionally disable autoFix for the rule.
Add disableFix to scales/font-weights
Apr 1, 2021
Disable auto-fix for "scales/font-weights" rule. However the similar feature would be useful for other rules from this lib as well. The main reason is that auto-fix makes potentially breaking changes to the app functionality. E.g. when next rule is defined:
'scales/font-weights': [100, 300, 400, 500, 700]
And auto-fix is applied, then it's not always safe to replace font-weight to closest value from the list. I would prefer to fix it manually, because it either may require updating other CSS as well to make it work correctly. Or it may require updating list of allowed values.
Add some option like in the example below to all rules which make potentially breaking changes, e.g.:
'scales/font-weights': { [100, 300, 400, 500, 700], {
disableAutoFix: true,
}]
The text was updated successfully, but these errors were encountered: