Skip to content

Commit 66b7600

Browse files
authored
Adding comment explaining aria-hidden prop addition
1 parent 6ce7a6f commit 66b7600

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/RadioButton/RadioButtonItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ const RadioButtonItem = ({
177177
let radioButton: any;
178178

179179
if (mode === 'android') {
180+
// aria-hidden ensures that Talkback does not read out the interior radio button as a separate element
180181
radioButton = <RadioButtonAndroid {...radioButtonProps} aria-hidden />;
181182
} else if (mode === 'ios') {
182183
radioButton = <RadioButtonIOS {...radioButtonProps} />;

0 commit comments

Comments
 (0)