From a33e9d25cc989a84d931d19807785be2476410c9 Mon Sep 17 00:00:00 2001 From: Leigh Pointer Date: Sat, 13 Dec 2025 13:04:30 +0100 Subject: [PATCH] Add AltText/title support to ActionDialog and ActionLink Introduce optional AltText parameter to ActionDialog and ActionLink components. AltText is now used as the title attribute on rendered buttons and links, providing tooltips for improved accessibility and user experience. All relevant elements, including those in disabled states, now support this enhancement. --- Oqtane.Client/Modules/Controls/ActionDialog.razor | 11 +++++++---- Oqtane.Client/Modules/Controls/ActionLink.razor | 9 ++++++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Oqtane.Client/Modules/Controls/ActionDialog.razor b/Oqtane.Client/Modules/Controls/ActionDialog.razor index 83948efe..11204bc7 100644 --- a/Oqtane.Client/Modules/Controls/ActionDialog.razor +++ b/Oqtane.Client/Modules/Controls/ActionDialog.razor @@ -35,11 +35,11 @@ { if (Disabled) { - + } else { - + } } } @@ -83,13 +83,13 @@ else { if (Disabled) { - + } else {
- +
} } @@ -112,6 +112,9 @@ else [Parameter] public string Text { get; set; } // optional - defaults to Action if not specified + + [Parameter] + public string AltText { get; set; } // optional [Parameter] public string Action { get; set; } // optional diff --git a/Oqtane.Client/Modules/Controls/ActionLink.razor b/Oqtane.Client/Modules/Controls/ActionLink.razor index 545dca5c..576a040f 100644 --- a/Oqtane.Client/Modules/Controls/ActionLink.razor +++ b/Oqtane.Client/Modules/Controls/ActionLink.razor @@ -8,17 +8,17 @@ { if (Disabled) { - @((MarkupString)_iconSpan) @_text + @((MarkupString)_iconSpan) @_text } else { if (OnClick == null) { - @((MarkupString)_iconSpan) @_text + @((MarkupString)_iconSpan) @_text } else { - + } } } @@ -42,6 +42,9 @@ [Parameter] public string Text { get; set; } // optional - defaults to Action if not specified + [Parameter] + public string AltText { get; set; } // optional + [Parameter] public int ModuleId { get; set; } = -1; // optional - allows the link to target a specific moduleid