File tree Expand file tree Collapse file tree
TestApps/BlazorDialog.TestAppsCommon Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 <Copyright />
1717 <PackageTags >blazor blazor-component blazor-dialog dialog modal blazor-modal blazordialog blazormodaldialog blazormodal razor razor-components razorcomponents</PackageTags >
1818 <VersionSuffix >$(VersionSuffix)</VersionSuffix >
19- <Version >1.3 .0</Version >
19+ <Version >1.4 .0</Version >
2020 <Version Condition =" '$(VersionSuffix)' != '' " >$(Version)-$(VersionSuffix)</Version >
2121 <Product >BlazorDialog</Product >
2222 </PropertyGroup >
Original file line number Diff line number Diff line change 88 <CascadingValue Value =" this.Input" Name =" DialogInput" >
99 @if (! IsCustom )
1010 {
11- <div class =" blazor-dialog-container @(Centered ? " blazor-dialog-centered " : " " )" style =" z-index :@(BaseZIndex + dialogDepth)" >
11+ <div class =" blazor-dialog-container @CssClass @ (Centered ? " blazor-dialog-centered " : " " )" style =" z-index :@(BaseZIndex + dialogDepth)" >
1212 <div class =" blazor-dialog-content-wrapper @ContentWrapperCssClass @AnimationCssClass" >
1313 <div class =" blazor-dialog-content" >
1414 @ChildContent
8989 /// </summary >
9090 [Parameter ] public bool IsCustom { get ; set ; }
9191
92+ /// <summary >
93+ /// Adds a custom css class to the wrapper of the dialog.
94+ /// </summary >
95+ [Parameter ] public string CssClass { get ; set ; }
96+
9297 protected TaskCompletionSource <object > taskCompletionSource ;
9398 internal Action <object > OnDialogHide ;
9499 protected void NotifyDialogHidden (object result ) => OnDialogHide ? .Invoke (result );
Original file line number Diff line number Diff line change 115115}
116116
117117.blazor-dialog-content-wrapper-windowed {
118- max-height : 100 % ;
118+ max-height : 90 % ;
119119 overflow : auto;
120120}
121121
122122@media (min-width : 576px ) {
123123 .blazor-dialog-content-wrapper-normal {
124124 max-width : 500px ;
125- margin : 2.75rem auto;
125+ /* margin: 2.75rem auto;*/
126126 }
127127}
128128
Original file line number Diff line number Diff line change @@ -76,7 +76,12 @@ Make sure that there is a call to `app.UseStaticFiles();` in your server project
7676
7777## Release Notes
7878
79- <details open =" open " ><summary >1.3</summary >
79+ <details open =" open " ><summary >1.4</summary >
80+
81+ > - Added css class parameter to dialog component.
82+ </details>
83+
84+ <details ><summary >1.3</summary >
8085
8186> - Added base z-index parameter to dialog component.
8287 </details>
Original file line number Diff line number Diff line change 2222 <option value =" @DialogAnimation.Zoom" >@DialogAnimation.Zoom </option >
2323 <option value =" @DialogAnimation.FadeIn" >@DialogAnimation.FadeIn </option >
2424</select >
25- <Dialog Id =" simple-large-dialog" Size =" size" Centered =" isCentered" Animation =" animation" >
25+ <Dialog Id =" simple-large-dialog" Size =" size" Centered =" isCentered" Animation =" animation" CssClass = " custom-class " >
2626 <DialogInputProvider TInput =" string" >
2727 <DialogHeader ShowClose =" true" >
2828 <h4 >@context.Input </h4 >
You can’t perform that action at this time.
0 commit comments