-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 remaining Disable... properties #8826
Conversation
FYI @BieleckiLtd |
src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerBasicUsageExample.razor
Outdated
Show resolved
Hide resolved
src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerDialogExample.razor
Outdated
Show resolved
Hide resolved
src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerPlaygroundExample.razor
Show resolved
Hide resolved
src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerPlaygroundExample.razor
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #8826 +/- ##
==========================================
+ Coverage 89.82% 90.12% +0.29%
==========================================
Files 412 421 +9
Lines 11878 12216 +338
Branches 2364 2410 +46
==========================================
+ Hits 10670 11010 +340
+ Misses 681 664 -17
- Partials 527 542 +15 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code is so much more intuitive after these renames!
src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerDialogExample.razor
Outdated
Show resolved
Hide resolved
src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerInlineExample.razor
Outdated
Show resolved
Hide resolved
src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerPlaygroundExample.razor
Outdated
Show resolved
Hide resolved
Some are ambiguous or hard to tell what it does at a glance. The problem has always been that it's easy for these properties to sound like configuration points (Alpha sounds like you can change the alpha). Some ideas:
|
I like |
# Conflicts: # src/MudBlazor/Components/Chart/Models/ChartOptions.cs
I decided to keep In ColorPicker I added Show almost everywhere, it feels better that way and is more consistent also: |
Ready for merge. |
# Conflicts: # src/MudBlazor/Base/MudComponentBase.cs
Added to v7.0.0 Migration Guide #8447 |
Description
Resolves #6131
DisableLegend
withShowLegend
and invert valueDisableToolbar
withShowToolbar
and invert valueDisableToolbar
withShowToolbar
and invert valueToolBarClass
withToolbarClass
DisableSidePadding
withGutters
and invert valueDisableOverlay
withOverlay
and invert valueDisableSliderAnimation
withSliderAnimation
and invert valueDisableModifiers
withModifiers
and invert valueMudColorPicker
DisableSliders
withShowSliders
and invert valueDisablePreview
withShowPreview
and invert valueDisableModeSwitch
withShowModeSwitch
and invert valueDisableInputs
withShowInputs
and invert valueDisableDragEffect
withDragEffect
and invert valueDisableColorField
withShowColorField
and invert valueDisableAlpha
withShowAlpha
and invert valueType of Changes
Checklist
dev
).