Fixed accessibility with screen reader on TextBlock controls with inlines rather than pure text (#20438)
This commit is contained in:
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user