Skip to content

Standardise the use of IsEnabled and Enabled#8764

Merged
henon merged 1 commit intoMudBlazor:devfrom
BieleckiLtd:fix/standardise-enabled
Apr 21, 2024
Merged

Standardise the use of IsEnabled and Enabled#8764
henon merged 1 commit intoMudBlazor:devfrom
BieleckiLtd:fix/standardise-enabled

Conversation

@BieleckiLtd
Copy link
Contributor

@BieleckiLtd BieleckiLtd commented Apr 20, 2024

MudBlazor currently uses the Enabled and IsEnabled properties. This PR aims to standardise the use of Enabled.

Description

If this PR is approved, the v7 migration guide must also be updated, as this makes a breaking change:

MudVirtualize: replace IsEnabled with Enabled
MudPopoverProvider: replace IsEnabled with Enabled

Linked issues:
Negative property names should be discouraged #6131
v7.0.0 Migration Guide #8447

Standardise the use of IsEnabled and Enabled #8764
Standardise the use of ItemDisabled #8887
Standardise the use of Checked, CheckedChanged and Checkable #8825
Standardise the use of Visible #8832
Standardise the use of Selected and SelectedChanged #8886
Standardise the use of Expanded, Expandable, IsExpanded and IsExpandable #8718
Standardise the use of Active #8888
Standardise the use of Open and OpenChanged #8891
Standardise the use of Editable #8892
Standardise the use of Hidden and HiddenChanged #8952

How Has This Been Tested?

unit

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (fix or improvement to the website or code docs)

Checklist

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@github-actions github-actions bot added breaking change This change will require consumer code updates bug Unexpected behavior or functionality not working as intended PR: needs review labels Apr 20, 2024
@codecov
Copy link

codecov bot commented Apr 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.04%. Comparing base (28bc599) to head (71b8bea).
Report is 90 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #8764      +/-   ##
==========================================
+ Coverage   89.82%   90.04%   +0.21%     
==========================================
  Files         412      419       +7     
  Lines       11878    12178     +300     
  Branches     2364     2397      +33     
==========================================
+ Hits        10670    10966     +296     
+ Misses        681      670      -11     
- Partials      527      542      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@danielchalmers danielchalmers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome

@danielchalmers danielchalmers requested a review from henon April 20, 2024 21:32
@henon henon merged commit 7b0751a into MudBlazor:dev Apr 21, 2024
@henon henon added API change Modifies the public API surface v7 and removed bug Unexpected behavior or functionality not working as intended PR: needs review labels Apr 21, 2024
@henon
Copy link
Contributor

henon commented Apr 21, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API change Modifies the public API surface breaking change This change will require consumer code updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants