Skip to content

MudTabPanel: Add ShowCloseIcon property#6062

Closed
Yomodo wants to merge 27 commits intoMudBlazor:devfrom
Yomodo:MudTabPanelShowCloseIcon
Closed

MudTabPanel: Add ShowCloseIcon property#6062
Yomodo wants to merge 27 commits intoMudBlazor:devfrom
Yomodo:MudTabPanelShowCloseIcon

Conversation

@Yomodo
Copy link
Contributor

@Yomodo Yomodo commented Dec 30, 2022

Description

This PR adds the ShowCloseIcon=true property to MudTabPanel to show/hide the close icon
when using MudDynamicTabs.

Use cases:
-Sometimes we just need to prevent closing a tab, e.g. stuff still in progress;
-Sometimes a minimal tab of 1 is mandatory;

image

image

How Has This Been Tested?

unit | visually

Types of changes

-Updated docs and some doc corrections.

  • 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)

Checklist:

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

@codecov
Copy link

codecov bot commented Dec 30, 2022

Codecov Report

Base: 91.52% // Head: 91.53% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (bb99a73) compared to base (a6116c6).
Patch coverage: 96.66% of modified lines in pull request are covered.

❗ Current head bb99a73 differs from pull request most recent head 2ead079. Consider uploading reports for the commit 2ead079 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #6062   +/-   ##
=======================================
  Coverage   91.52%   91.53%           
=======================================
  Files         383      383           
  Lines       15019    15023    +4     
=======================================
+ Hits        13746    13751    +5     
+ Misses       1273     1272    -1     
Impacted Files Coverage Δ
src/MudBlazor/Components/Tabs/MudTabPanel.razor 100.00% <ø> (ø)
src/MudBlazor/Components/Tabs/MudDynamicTabs.razor 99.31% <96.66%> (+0.01%) ⬆️
...r/Components/Autocomplete/MudAutocomplete.razor.cs 92.85% <0.00%> (+0.42%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mikes-gh mikes-gh added enhancement Adds a new feature or enhances existing functionality (not fixing a defect) in the main library API change Modifies the public API surface labels Dec 30, 2022
@mikes-gh
Copy link
Contributor

Thanks @Yomodo
I know its frustrating but could you fix the indenting.
Looks like the previous developer used Tabs for indents instead of spaces.

@Yomodo
Copy link
Contributor Author

Yomodo commented Dec 30, 2022

I know its frustrating but could you fix the indenting.
Looks like the previous developer used Tabs for indents instead of spaces.

Indeed, but surely it is acceptable since indents are now spaces and the formatting overall still looks ok?
I did try to correct indenting but only made it worse and reverted that,
I really don't want to spent more time on that. I tried.

@Yomodo
Copy link
Contributor Author

Yomodo commented Dec 31, 2022

I'll try again.

Yomodo and others added 16 commits December 31, 2022 13:38
…" due to reported dragging issues.

This reverts commit 52134a5.
Bumps [bunit](https://github.com/bUnit-dev/bUnit) from 1.13.5 to 1.14.4.
- [Release notes](https://github.com/bUnit-dev/bUnit/releases)
- [Changelog](https://github.com/bUnit-dev/bUnit/blob/main/CHANGELOG.md)
- [Commits](bUnit-dev/bUnit@v1.13.5...v1.14.4)

---
updated-dependencies:
- dependency-name: bunit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…MudBlazor#6159)

Bumps [Microsoft.AspNetCore.Components.WebAssembly](https://github.com/dotnet/aspnetcore) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](dotnet/aspnetcore@v7.0.1...v7.0.2)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Components.WebAssembly
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…er (MudBlazor#6158)

Bumps [Microsoft.AspNetCore.Components.WebAssembly.DevServer](https://github.com/dotnet/aspnetcore) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](dotnet/aspnetcore@v7.0.1...v7.0.2)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Components.WebAssembly.DevServer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…udBlazor#6157)

Bumps [Microsoft.AspNetCore.Components.WebAssembly.Server](https://github.com/dotnet/aspnetcore) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/dotnet/aspnetcore/releases)
- [Changelog](https://github.com/dotnet/aspnetcore/blob/main/docs/ReleasePlanning.md)
- [Commits](dotnet/aspnetcore@v7.0.1...v7.0.2)

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Components.WebAssembly.Server
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@mikes-gh
Copy link
Contributor

Hi @Yomodo could you fix the conflicts please Thanks

@Yomodo
Copy link
Contributor Author

Yomodo commented Jan 22, 2023

Will do!

@Yomodo
Copy link
Contributor Author

Yomodo commented Jan 22, 2023

Now sure how, but it got messy :(
I will close this PR and open a new one.

@Yomodo Yomodo closed this Jan 22, 2023
@Yomodo Yomodo deleted the MudTabPanelShowCloseIcon branch January 22, 2023 18:50
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 enhancement Adds a new feature or enhances existing functionality (not fixing a defect) in the main library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants