File tree 3 files changed +28
-2
lines changed
src/Core/Components/Dialog 3 files changed +28
-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.
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>
You can’t perform that action at this time.
0 commit comments