File tree 6 files changed +61
-2
lines changed 6 files changed +61
-2
lines changed Original file line number Diff line number Diff line change 3554
3554
If defined, this value will replace the one defined in the <see cref="T:Microsoft.FluentUI.AspNetCore.Components.DialogParameters"/>.
3555
3555
</summary>
3556
3556
</member>
3557
+ <member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentDialogHeader.ShowDismissTooltip">
3558
+ <summary>
3559
+ When true, shows the "Close" button tooltip in the header.
3560
+ </summary>
3561
+ </member>
3562
+ <member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentDialogHeader.TabIndex">
3563
+ <summary>
3564
+ Allows developers to make elements sequentially focusable and determine their relative ordering for navigation (usually with the Tab key).
3565
+ </summary>
3566
+ </member>
3557
3567
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentDialogHeader.ChildContent">
3558
3568
<summary>
3559
3569
Gets or sets the content to be rendered inside the component.
14121
14131
The content is stretched to fill the available space.
14122
14132
</summary>
14123
14133
</member>
14134
+ <member name="F:Microsoft.FluentUI.AspNetCore.Components.HorizontalAlignment.SpaceBetween">
14135
+ <summary>
14136
+ The items are evenly distributed within the alignment container along the main axis.
14137
+ </summary>
14138
+ </member>
14124
14139
<member name="T:Microsoft.FluentUI.AspNetCore.Components.HorizontalPosition">
14125
14140
<summary>
14126
14141
Describes the horizontal positioning of a <see cref="T:Microsoft.FluentUI.AspNetCore.Components.FluentAnchoredRegion"/>.
15128
15143
The content is aligned to the bottom
15129
15144
</summary>
15130
15145
</member>
15146
+ <member name="F:Microsoft.FluentUI.AspNetCore.Components.VerticalAlignment.Stretch">
15147
+ <summary>
15148
+ The content is stretched to fill the available space.
15149
+ </summary>
15150
+ </member>
15151
+ <member name="F:Microsoft.FluentUI.AspNetCore.Components.VerticalAlignment.SpaceBetween">
15152
+ <summary>
15153
+ The items are evenly distributed within the alignment container along the main axis.
15154
+ </summary>
15155
+ </member>
15131
15156
<member name="T:Microsoft.FluentUI.AspNetCore.Components.VerticalPosition">
15132
15157
<summary>
15133
15158
Describes the vertical positioning of a <see cref="T:Microsoft.FluentUI.AspNetCore.Components.FluentAnchoredRegion"/>.
Original file line number Diff line number Diff line change 8
8
Style =" @StyleValue"
9
9
Class =" @ClassValue"
10
10
Id =" @Id" >
11
- <div style =" width : 100% ;" tabindex =" 0 " >
11
+ <div style =" width : 100% ;" tabindex =" @TabIndex " >
12
12
@if (@ChildContent == null && Dialog .Instance ? .Parameters ? .ShowTitle == true )
13
13
{
14
14
<FluentLabel Typo =" Typography.PaneHeader" >@Dialog.Instance ? .Parameters ?.Title </FluentLabel >
24
24
<FluentButton Id =" dialog_close" Appearance =" Appearance.Stealth" OnClick =" @(() => Dialog.CancelAsync())" aria-label =" @Dialog.Instance?.Parameters?.DismissTitle" >
25
25
<FluentIcon Value =" @(new CoreIcons.Regular.Size20.Dismiss())" Width =" 20px" Color =" Color.Neutral" />
26
26
</FluentButton >
27
- <FluentTooltip Anchor =" dialog_close" Position =" @TooltipPosition.Bottom" >@Dialog.Instance ? .Parameters ?.DismissTitle </FluentTooltip >
27
+
28
+ if (ShowDismissTooltip == true )
29
+ {
30
+ < FluentTooltip Anchor = " dialog_close" Position = " @TooltipPosition.Bottom" > @Dialog .Instance ? .Parameters ?.DismissTitle < / FluentTooltip >
31
+ }
28
32
}
29
33
</FluentStack >
30
34
}
Original file line number Diff line number Diff line change @@ -34,6 +34,18 @@ public partial class FluentDialogHeader : FluentComponentBase
34
34
[ Parameter ]
35
35
public bool ? ShowDismiss { get ; set ; }
36
36
37
+ /// <summary>
38
+ /// When true, shows the "Close" button tooltip in the header.
39
+ /// </summary>
40
+ [ Parameter ]
41
+ public bool ? ShowDismissTooltip { get ; set ; } = true ;
42
+
43
+ /// <summary>
44
+ /// Allows developers to make elements sequentially focusable and determine their relative ordering for navigation (usually with the Tab key).
45
+ /// </summary>
46
+ [ Parameter ]
47
+ public int ? TabIndex { get ; set ; } = 0 ;
48
+
37
49
/// <summary>
38
50
/// Gets or sets the content to be rendered inside the component.
39
51
/// </summary>
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ private string GetHorizontalAlignment()
87
87
HorizontalAlignment . Right => "end" ,
88
88
HorizontalAlignment . End => "end" ,
89
89
HorizontalAlignment . Stretch => "stretch" ,
90
+ HorizontalAlignment . SpaceBetween => Orientation == Orientation . Vertical ? "start" : "space-between" ,
90
91
_ => "start" ,
91
92
} ;
92
93
}
@@ -98,6 +99,8 @@ private string GetVerticalAlignment()
98
99
VerticalAlignment . Top => "start" ,
99
100
VerticalAlignment . Center => "center" ,
100
101
VerticalAlignment . Bottom => "end" ,
102
+ VerticalAlignment . Stretch => "stretch" ,
103
+ VerticalAlignment . SpaceBetween => Orientation == Orientation . Horizontal ? "start" : "space-between" ,
101
104
_ => "start" ,
102
105
} ;
103
106
}
Original file line number Diff line number Diff line change @@ -34,4 +34,9 @@ public enum HorizontalAlignment
34
34
/// The content is stretched to fill the available space.
35
35
/// </summary>
36
36
Stretch ,
37
+
38
+ /// <summary>
39
+ /// The items are evenly distributed within the alignment container along the main axis.
40
+ /// </summary>
41
+ SpaceBetween ,
37
42
}
Original file line number Diff line number Diff line change @@ -19,4 +19,14 @@ public enum VerticalAlignment
19
19
/// The content is aligned to the bottom
20
20
/// </summary>
21
21
Bottom ,
22
+
23
+ /// <summary>
24
+ /// The content is stretched to fill the available space.
25
+ /// </summary>
26
+ Stretch ,
27
+
28
+ /// <summary>
29
+ /// The items are evenly distributed within the alignment container along the main axis.
30
+ /// </summary>
31
+ SpaceBetween ,
22
32
}
You can’t perform that action at this time.
0 commit comments