fix nvda announcing wrong radio button grouping (#9613)

This commit is contained in:
Kim Santiago
2020-03-13 14:36:12 -07:00
committed by GitHub
parent 56851dedd2
commit dbd9e5be2d

View File

@@ -379,8 +379,9 @@ export class SchemaCompareDialog {
} }
let flexRadioButtonsModel = view.modelBuilder.flexContainer() let flexRadioButtonsModel = view.modelBuilder.flexContainer()
.withLayout({ flexFlow: 'column' }) .withLayout({ flexFlow: 'column' })
.withItems([this.sourceDacpacRadioButton, this.sourceDatabaseRadioButton] .withItems([this.sourceDacpacRadioButton, this.sourceDatabaseRadioButton])
).component(); .withProperties({ ariaRole: 'radiogroup' })
.component();
return { return {
component: flexRadioButtonsModel, component: flexRadioButtonsModel,
@@ -436,7 +437,9 @@ export class SchemaCompareDialog {
let flexRadioButtonsModel = view.modelBuilder.flexContainer() let flexRadioButtonsModel = view.modelBuilder.flexContainer()
.withLayout({ flexFlow: 'column' }) .withLayout({ flexFlow: 'column' })
.withItems([dacpacRadioButton, databaseRadioButton] .withItems([dacpacRadioButton, databaseRadioButton]
).component(); )
.withProperties({ ariaRole: 'radiogroup' })
.component();
return { return {
component: flexRadioButtonsModel, component: flexRadioButtonsModel,