Browse Source

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

release/11.3
Melissa 4 weeks ago
committed by Julien Lebosquain
parent
commit
f703d3873d
No known key found for this signature in database GPG Key ID: 1833CAD10ACC46FD
  1. 2
      src/Avalonia.Controls/Automation/Peers/TextBlockAutomationPeer.cs

2
src/Avalonia.Controls/Automation/Peers/TextBlockAutomationPeer.cs

@ -16,7 +16,7 @@ namespace Avalonia.Automation.Peers
return AutomationControlType.Text;
}
protected override string? GetNameCore() => Owner.Text;
protected override string? GetNameCore() => Owner.Inlines?.Text ?? Owner.Text;
protected override bool IsControlElementCore()
{

Loading…
Cancel
Save