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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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() |
|
|
|
{ |
|
|
|
|