Browse Source

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

pull/20442/head
Melissa 9 months ago
committed by GitHub
parent
commit
b0943d9888
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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