Skip to content

Commit 337880e

Browse files
MOO-1679-main | fix: the accesibility role has been changed to radio instead of button (#210)
2 parents 32de4ac + f0b9c4e commit 337880e

5 files changed

Lines changed: 17 additions & 2 deletions

File tree

packages/pluggableWidgets/radio-buttons-native/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- The accessibility role has been changed to radio.
12+
913
## [1.1.0] - 2024-12-3
1014

1115
### Changed

packages/pluggableWidgets/radio-buttons-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "radio-buttons-native",
33
"widgetName": "RadioButtons",
4-
"version": "1.1.0",
4+
"version": "1.2.0",
55
"license": "Apache-2.0",
66
"repository": {
77
"type": "git",

packages/pluggableWidgets/radio-buttons-native/src/__tests__/__snapshots__/RadioButtons.spec.tsx.snap

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ exports[`Radio buttons render correctly with show label false 1`] = `
99
style={false}
1010
>
1111
<View
12+
accessibilityRole="radio"
1213
accessibilityState={
1314
{
1415
"busy": undefined,
@@ -92,6 +93,7 @@ exports[`Radio buttons render correctly with show label false 1`] = `
9293
</Text>
9394
</View>
9495
<View
96+
accessibilityRole="radio"
9597
accessibilityState={
9698
{
9799
"busy": undefined,
@@ -186,6 +188,7 @@ exports[`Radio buttons render correctly without label 1`] = `
186188
style={false}
187189
>
188190
<View
191+
accessibilityRole="radio"
189192
accessibilityState={
190193
{
191194
"busy": undefined,
@@ -269,6 +272,7 @@ exports[`Radio buttons render correctly without label 1`] = `
269272
</Text>
270273
</View>
271274
<View
275+
accessibilityRole="radio"
272276
accessibilityState={
273277
{
274278
"busy": undefined,
@@ -365,6 +369,7 @@ exports[`Radio buttons render disabled radio buttons correctly 1`] = `
365369
style={false}
366370
>
367371
<View
372+
accessibilityRole="radio"
368373
accessibilityState={
369374
{
370375
"busy": undefined,
@@ -439,6 +444,7 @@ exports[`Radio buttons render disabled radio buttons correctly 1`] = `
439444
</Text>
440445
</View>
441446
<View
447+
accessibilityRole="radio"
442448
accessibilityState={
443449
{
444450
"busy": undefined,
@@ -543,6 +549,7 @@ exports[`Radio buttons render horizontal radio buttons correctly 1`] = `
543549
}
544550
>
545551
<View
552+
accessibilityRole="radio"
546553
accessibilityState={
547554
{
548555
"busy": undefined,
@@ -629,6 +636,7 @@ exports[`Radio buttons render horizontal radio buttons correctly 1`] = `
629636
</Text>
630637
</View>
631638
<View
639+
accessibilityRole="radio"
632640
accessibilityState={
633641
{
634642
"busy": undefined,
@@ -728,6 +736,7 @@ exports[`Radio buttons render vertical radio buttons correctly 1`] = `
728736
style={false}
729737
>
730738
<View
739+
accessibilityRole="radio"
731740
accessibilityState={
732741
{
733742
"busy": undefined,
@@ -811,6 +820,7 @@ exports[`Radio buttons render vertical radio buttons correctly 1`] = `
811820
</Text>
812821
</View>
813822
<View
823+
accessibilityRole="radio"
814824
accessibilityState={
815825
{
816826
"busy": undefined,

packages/pluggableWidgets/radio-buttons-native/src/components/RadioButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export function RadioButton({
3131
]}
3232
onPress={() => onSelect(name)}
3333
testID={`radio-button-${name}`}
34+
accessibilityRole="radio"
3435
>
3536
<View style={[styles.circularButtonStyle, disabled && styles.circularBtnDisabledStyle]}>
3637
{active && <View style={styles.activeButtonStyle} />}

packages/pluggableWidgets/radio-buttons-native/src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="RadioButtons" version="1.1.0" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="RadioButtons" version="1.2.0" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="RadioButtons.xml" />
66
</widgetFiles>

0 commit comments

Comments
 (0)