Add accessibility to AlertDialog
authorAnna Bartak <a.bartak@samsung.com>
Thu, 22 Apr 2021 07:00:48 +0000 (09:00 +0200)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 21 May 2021 07:37:43 +0000 (16:37 +0900)
src/Tizen.NUI.Components/Controls/AlertDialog.cs

index 0bf56a8..20bfbe9 100755 (executable)
@@ -391,6 +391,14 @@ namespace Tizen.NUI.Components
             }
         }
 
+        /// <inheritdoc/>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public override void OnInitialize()
+        {
+            base.OnInitialize();
+            SetAccessibilityConstructor(Role.Dialog);
+        }
+
         /// <summary>
         /// Default title content of AlertDialog.
         /// If Title is set, then default title content is automatically displayed.
@@ -466,6 +474,7 @@ namespace Tizen.NUI.Components
             Content = DefaultContent;
 
             ActionContent = DefaultActionContent;
+            AccessibilityHighlightable = true;
         }
 
         private void ResetContent()