Fixed accessibility with screen reader on TextBlock controls with inlines rather than pure text (#20438)

This commit is contained in:
Melissa
2026-01-08 18:38:35 +01:00
committed by GitHub
parent f2fc8d02f4
commit b0943d9888
@@ -16,7 +16,7 @@ namespace Avalonia.Automation.Peers
return AutomationControlType.Text; return AutomationControlType.Text;
} }
protected override string? GetNameCore() => Owner.Text; protected override string? GetNameCore() => Owner.Inlines?.Text ?? Owner.Text;
protected override bool IsControlElementCore() protected override bool IsControlElementCore()
{ {