Skip to content

Commit

Permalink
Merge pull request #7 from stavroskasidis/release/v1.3
Browse files Browse the repository at this point in the history
feat: v1.3 Add base z-index paramter to dialog
  • Loading branch information
stavroskasidis authored Oct 21, 2021
2 parents 897c0d9 + 82fd50d commit 68ec007
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BlazorDialog/BlazorDialog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<Copyright />
<PackageTags>blazor blazor-component blazor-dialog dialog modal blazor-modal blazordialog blazormodaldialog blazormodal razor razor-components razorcomponents</PackageTags>
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
<Version>1.2.0</Version>
<Version>1.3.0</Version>
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)-$(VersionSuffix)</Version>
<Product>BlazorDialog</Product>
</PropertyGroup>
Expand Down
7 changes: 6 additions & 1 deletion BlazorDialog/Components/Dialog.razor
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<CascadingValue Value="this.Input" Name="DialogInput">
@if (!IsCustom)
{
<div class="blazor-dialog-container @(Centered ? "blazor-dialog-centered" : "")" style="z-index:@(1050 + dialogDepth)">
<div class="blazor-dialog-container @(Centered ? "blazor-dialog-centered" : "")" style="z-index:@(BaseZIndex + dialogDepth)">
<div class="blazor-dialog-content-wrapper @ContentWrapperCssClass @AnimationCssClass">
<div class="blazor-dialog-content">
@ChildContent
Expand All @@ -33,6 +33,11 @@
/// </summary>
[Parameter] public string Id { get; set; }

/// <summary>
/// The base z-index of the dialog when shown. Default: 1050
/// </summary>
[Parameter] public int BaseZIndex { get; set; } = 1050;

/// <summary>
/// Use this to show/hide the dialog as a simple component.
/// </summary>
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ Make sure that there is a call to `app.UseStaticFiles();` in your server project
## Release Notes

<details open="open"><summary>1.2</summary>
<details open="open"><summary>1.3</summary>

>- Added base z-index parameter to dialog component.
</details>
<details><summary>1.2</summary>

>- Added fullscreen mode.
</details>
Expand Down

0 comments on commit 68ec007

Please sign in to comment.