Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focusable sibling elements must not have the same Name and LocalizedControlType #18074

Open
OpenSource03 opened this issue Jan 29, 2025 · 0 comments

Comments

@OpenSource03
Copy link

Discussed in #18072 (transferring to issues, as this may be AvaloniaUI issue)

Originally posted by OpenSource03 January 29, 2025
Hello

I have an issue implementing full accessibility support:
Focusable sibling elements must not have the same Name and LocalizedControlType

Code:

<TextBox Name="Digit1Box"
         Width="45" Height="45"
         MaxLength="1"
         FontSize="20"
         Background="#F8F8F8"
         Foreground="#18181B"
         BorderBrush="#6E56CF"
         CornerRadius="8"
         HorizontalContentAlignment="Center"
         VerticalContentAlignment="Center"
         IsEnabled="{Binding IsEnabled}"
         KeyDown="OnDigitKeyDown"
         AcceptsReturn="True"
         AutomationProperties.Name="First digit of connection code"
         AutomationProperties.HelpText="Enter a single digit between 0 and 9"
         Text="{Binding Digit1}"/>
<TextBox Name="Digit2Box"
         Width="45" Height="45"
         MaxLength="1"
         FontSize="20"
         Background="#F8F8F8"
         Foreground="#18181B"
         BorderBrush="#6E56CF"
         CornerRadius="8"
         HorizontalContentAlignment="Center"
         VerticalContentAlignment="Center"
         IsEnabled="{Binding IsEnabled}"
         KeyDown="OnDigitKeyDown"
         AcceptsReturn="True"
         AutomationProperties.Name="Second digit of connection code"
         AutomationProperties.HelpText="Enter a single digit between 0 and 9"
         Text="{Binding Digit2}"/>
<TextBox Name="Digit3Box"
         Width="45" Height="45"
         MaxLength="1"
         FontSize="20"
         Background="#F8F8F8"
         Foreground="#18181B"
         BorderBrush="#6E56CF"
         CornerRadius="8"
         HorizontalContentAlignment="Center"
         VerticalContentAlignment="Center"
         IsEnabled="{Binding IsEnabled}"
         KeyDown="OnDigitKeyDown"
         AcceptsReturn="True"
         AutomationProperties.Name="Third digit of connection code"
         AutomationProperties.HelpText="Enter a single digit between 0 and 9"
         Text="{Binding Digit3}"/>
<TextBox Name="Digit4Box"
         Width="45" Height="45"
         MaxLength="1"
         FontSize="20"
         Background="#F8F8F8"
         Foreground="#18181B"
         BorderBrush="#6E56CF"
         CornerRadius="8"
         HorizontalContentAlignment="Center"
         VerticalContentAlignment="Center"
         IsEnabled="{Binding IsEnabled}"
         KeyDown="OnDigitKeyDown"
         AcceptsReturn="True"
         AutomationProperties.Name="Fourth digit of connection code"
         AutomationProperties.HelpText="Enter a single digit between 0 and 9"
         Text="{Binding Digit4}"/>

Could someone provide me with guidance on how to resolve these?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant