[Dialog] Remove tabindex=-1 on fluent-dialog tag (#2584)
* - Remove tabindex=-1 on fluent-dialog - Add null checks * Update Dialog verified files
This commit is contained in:
Родитель
8496705f83
Коммит
168a896239
|
@ -1,4 +1,4 @@
|
|||
@namespace Microsoft.FluentUI.AspNetCore.Components
|
||||
@namespace Microsoft.FluentUI.AspNetCore.Components
|
||||
@using Microsoft.AspNetCore.Components.Rendering
|
||||
@inherits FluentComponentBase
|
||||
|
||||
|
@ -13,8 +13,7 @@
|
|||
aria-describedby=@(_parameters.AriaDescribedby ?? AriaDescribedby)
|
||||
aria-labelledby=@(_parameters.AriaLabelledby ?? AriaLabelledby)
|
||||
aria-label=@(_parameters.AriaLabel ?? AriaLabel)
|
||||
@attributes=@AdditionalAttributes
|
||||
tabindex="-1">
|
||||
@attributes=@AdditionalAttributes>
|
||||
|
||||
@* Default Header *@
|
||||
@if (HasDefaultDialogHeader)
|
||||
|
|
|
@ -165,7 +165,10 @@ public partial class FluentDialog : FluentComponentBase
|
|||
public void Show()
|
||||
{
|
||||
Hidden = false;
|
||||
if (Instance is not null)
|
||||
{
|
||||
Instance.Parameters.Visible = true;
|
||||
}
|
||||
RefreshHeaderFooter();
|
||||
}
|
||||
|
||||
|
@ -175,8 +178,10 @@ public partial class FluentDialog : FluentComponentBase
|
|||
public void Hide()
|
||||
{
|
||||
Hidden = true;
|
||||
if (Instance is not null)
|
||||
{
|
||||
Instance.Parameters.Visible = false;
|
||||
//RefreshHeaderFooter();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
<fluent-dialog id="xxx" class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: 200px;" modal="true" trap-focus="true" blazor:ondialogdismiss="1" tabindex="-1" b-dsxskpj5rr="" blazor:elementreference="">
|
||||
<fluent-dialog id="xxx" class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: 200px;" modal="true" trap-focus="true" blazor:ondialogdismiss="1" b-dsxskpj5rr="" blazor:elementreference="">
|
||||
<div class="stack-horizontal fluent-dialog-header" style="justify-content: start; align-items: start; column-gap: 10px; row-gap: 10px; width: 100%;" b-0nr62qx0mz="">
|
||||
<div style="width: 100%;">
|
||||
<h4 typo="pane-header" class="fluent-typography" b-1nnnfjehkp="">Sample title</h4>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
<fluent-dialog id="xxx" class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" blazor:ondialogdismiss="1" tabindex="-1" b-dsxskpj5rr="" blazor:elementreference="">
|
||||
<fluent-dialog id="xxx" class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" blazor:ondialogdismiss="1" b-dsxskpj5rr="" blazor:elementreference="">
|
||||
<div class="stack-horizontal fluent-dialog-header" style="justify-content: start; align-items: start; column-gap: 10px; row-gap: 10px; width: 100%;" b-0nr62qx0mz="">
|
||||
<div style="width: 100%;">
|
||||
<h4 typo="pane-header" class="fluent-typography" b-1nnnfjehkp="">Sample title</h4>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
<fluent-dialog id="xxx" class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" blazor:ondialogdismiss="1" tabindex="-1" b-dsxskpj5rr="" blazor:elementreference="">
|
||||
<fluent-dialog id="xxx" class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" blazor:ondialogdismiss="1" b-dsxskpj5rr="" blazor:elementreference="">
|
||||
<div class="stack-horizontal fluent-dialog-header" style="justify-content: start; align-items: start; column-gap: 10px; row-gap: 10px; width: 100%;" b-0nr62qx0mz="">
|
||||
<div style="width: 100%;">
|
||||
<h4 typo="pane-header" class="fluent-typography" b-1nnnfjehkp="">Render Fragment Example</h4>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
|
||||
<fluent-dialog class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" tabindex="-1" b-dsxskpj5rr="" blazor:elementreference="xxx">My dialog content</fluent-dialog>
|
||||
<fluent-dialog class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" b-dsxskpj5rr="" blazor:elementreference="xxx">My dialog content</fluent-dialog>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
<fluent-dialog class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" tabindex="-1" b-dsxskpj5rr="" blazor:elementreference="">
|
||||
<fluent-dialog class="fluent-dialog-main prevent-scroll" style="position: absolute; z-index: 999; top: 50%; left: 50%; --dialog-width: 500px; --dialog-height: unset;" modal="true" trap-focus="true" b-dsxskpj5rr="" blazor:elementreference="">
|
||||
<div class="stack-horizontal fluent-dialog-header" style="justify-content: start; align-items: start; column-gap: 10px; row-gap: 10px; width: 100%;" b-0nr62qx0mz="">
|
||||
<div style="width: 100%;">
|
||||
Header content
|
||||
|
|
Загрузка…
Ссылка в новой задаче