mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Associate Units and Theme labels with the radio button groups (#1211)
* Wrap theme radio buttons in MUXC RadioButtons control to fix accessibility issue where the buttons are grouped with the theme title * Associated theme labels with radio button groups
This commit is contained in:
parent
0105e6b319
commit
1e302cac58
1 changed files with 2 additions and 3 deletions
|
@ -174,7 +174,7 @@
|
|||
Style="{StaticResource SubTitleTextBoxStyle}"
|
||||
AutomationProperties.HeadingLevel="Level2"/>
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel AutomationProperties.LabeledBy="{Binding ElementName=UnitsHeading}" Orientation="Horizontal">
|
||||
<RadioButton x:Name="Radians"
|
||||
x:Uid="TrigModeRadians"
|
||||
Style="{StaticResource TrigUnitsRadioButtonStyle}"
|
||||
|
@ -218,14 +218,13 @@
|
|||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox>
|
||||
|
||||
<TextBlock x:Name="GraphThemeHeading"
|
||||
x:Uid="GraphThemeHeading"
|
||||
Margin="0,16,0,6"
|
||||
Style="{StaticResource SubTitleTextBoxStyle}"
|
||||
AutomationProperties.HeadingLevel="Level2"/>
|
||||
|
||||
<StackPanel Orientation="Vertical">
|
||||
<StackPanel AutomationProperties.LabeledBy="{Binding ElementName=GraphThemeHeading}">
|
||||
<RadioButton x:Uid="AlwaysLightTheme" IsChecked="{x:Bind IsMatchAppTheme, Mode=TwoWay, Converter={StaticResource BooleanNegationConverter}}"/>
|
||||
<RadioButton x:Uid="MatchAppTheme"
|
||||
Margin="1,0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue