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
Rename the Margin.None
enum value to Margin.Default
.
#8844
base: dev
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #8844 +/- ##
==========================================
+ Coverage 89.82% 90.07% +0.24%
==========================================
Files 412 421 +9
Lines 11878 12301 +423
Branches 2364 2438 +74
==========================================
+ Hits 10670 11080 +410
+ Misses 681 668 -13
- Partials 527 553 +26 ☔ View full report in Codecov by Sentry. |
Hmm, not sure about this because |
Does this mean that current None and Normal are also the same things? |
I don't know, probably not. But the words Normal and Default kind of mean the same, that is confusing |
Finding another name that won't be as confusing as Thinking more about this, now that users can set their own default values, named values such as Normal or Dense have lost much of their significance. Numerical values would be less ambiguous, more practical, and more flexible, but adopting them would represent a significant paradigm shift for the library. |
Yes, we'll work on that at some point in the future. I honestly don't know myself what to do about this now. |
I vote to rework this parameter entirely at the same time to avoid churn |
Margin.None
value can be misleading, as the name suggests that no margin will be applied to the element, which is not the case. This PR renames the enum value toMargin.Default
to more accurately describe its intended use.Note to add to the v7.0.0 Migration Guide #8447:
Margin.None
withMargin.Default
Description
Closes #8650.
How Has This Been Tested?
unit
Type of Changes
Checklist
dev
).